PHP Class Symfony\Bundle\WebProfilerBundle\Tests\Profiler\TemplateManagerTest

Author: Artur Wielogórski ([email protected])
Inheritance: extends Symfony\Bundle\WebProfilerBundle\Tests\TestCase
Datei anzeigen Open project: symfony/symfony

Protected Properties

Property Type Description
$profiler Symfony\Component\HttpKernel\Profiler\Profiler
$templateManager Symfony\Bundle\WebProfilerBundle\Profiler\TemplateManager
$twigEnvironment Twig_Environment

Public Methods

Method Description
profileHasCollectorCallback ( $panel )
profilerHasCallback ( $panel )
testGetNameOfInvalidTemplate ( )
testGetNameValidTemplate ( ) if template exists in both profile and profiler then its name should be returned.
testGetTemplates ( ) template should be loaded for 'foo' because other collectors are missing in profile or in profiler.

Protected Methods

Method Description
mockProfile ( )
mockProfiler ( )
mockTwigEnvironment ( )
setUp ( )

Method Details

mockProfile() protected method

protected mockProfile ( )

mockProfiler() protected method

protected mockProfiler ( )

mockTwigEnvironment() protected method

protected mockTwigEnvironment ( )

profileHasCollectorCallback() public method

public profileHasCollectorCallback ( $panel )

profilerHasCallback() public method

public profilerHasCallback ( $panel )

setUp() protected method

protected setUp ( )

testGetNameOfInvalidTemplate() public method

testGetNameValidTemplate() public method

if template exists in both profile and profiler then its name should be returned.

testGetTemplates() public method

template should be loaded for 'foo' because other collectors are missing in profile or in profiler.
public testGetTemplates ( )

Property Details

$profiler protected_oe property

protected Profiler,Symfony\Component\HttpKernel\Profiler $profiler
return Symfony\Component\HttpKernel\Profiler\Profiler

$templateManager protected_oe property

protected TemplateManager,Symfony\Bundle\WebProfilerBundle\Profiler $templateManager
return Symfony\Bundle\WebProfilerBundle\Profiler\TemplateManager

$twigEnvironment protected_oe property

protected Twig_Environment $twigEnvironment
return Twig_Environment