fixed CS
This commit is contained in:
parent
bc73487382
commit
1472283739
@ -93,7 +93,8 @@ class TemplateManagerTest extends TestCase
|
|||||||
* template should be loaded for 'foo' because other collectors are
|
* template should be loaded for 'foo' because other collectors are
|
||||||
* missing in profile or in profiler
|
* missing in profile or in profiler
|
||||||
*/
|
*/
|
||||||
public function testGetTemplates() {
|
public function testGetTemplates()
|
||||||
|
{
|
||||||
|
|
||||||
$profile = $this->mockProfile();
|
$profile = $this->mockProfile();
|
||||||
$profile->expects($this->any())
|
$profile->expects($this->any())
|
||||||
@ -111,7 +112,8 @@ class TemplateManagerTest extends TestCase
|
|||||||
$this->assertArrayNotHasKey('baz',$result);
|
$this->assertArrayNotHasKey('baz',$result);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function profilerHasCallback($panel) {
|
public function profilerHasCallback($panel)
|
||||||
|
{
|
||||||
switch ($panel) {
|
switch ($panel) {
|
||||||
case 'foo':
|
case 'foo':
|
||||||
case 'bar':
|
case 'bar':
|
||||||
@ -121,7 +123,8 @@ class TemplateManagerTest extends TestCase
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function profileHasCollectorCallback($panel) {
|
public function profileHasCollectorCallback($panel)
|
||||||
|
{
|
||||||
switch ($panel) {
|
switch ($panel) {
|
||||||
case 'foo':
|
case 'foo':
|
||||||
case 'baz':
|
case 'baz':
|
||||||
@ -131,7 +134,8 @@ class TemplateManagerTest extends TestCase
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function mockProfile() {
|
protected function mockProfile()
|
||||||
|
{
|
||||||
$this->profile = $this->getMockBuilder('Symfony\Component\HttpKernel\Profiler\Profile')
|
$this->profile = $this->getMockBuilder('Symfony\Component\HttpKernel\Profiler\Profile')
|
||||||
->disableOriginalConstructor()
|
->disableOriginalConstructor()
|
||||||
->getMock();
|
->getMock();
|
||||||
@ -163,7 +167,8 @@ class TemplateManagerTest extends TestCase
|
|||||||
return $this->twigEngine;
|
return $this->twigEngine;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function mockProfiler() {
|
protected function mockProfiler()
|
||||||
|
{
|
||||||
$this->profiler = $this->getMockBuilder('Symfony\Component\HttpKernel\Profiler\Profiler')
|
$this->profiler = $this->getMockBuilder('Symfony\Component\HttpKernel\Profiler\Profiler')
|
||||||
->disableOriginalConstructor()
|
->disableOriginalConstructor()
|
||||||
->getMock();
|
->getMock();
|
||||||
|
Reference in New Issue
Block a user