name: TemplateManagerTest class_comment: "# * @author Artur Wielog\xF3rski " dependencies: - name: TemplateManager type: class source: Symfony\Bundle\WebProfilerBundle\Profiler\TemplateManager - name: TestCase type: class source: Symfony\Bundle\WebProfilerBundle\Tests\TestCase - name: NotFoundHttpException type: class source: Symfony\Component\HttpKernel\Exception\NotFoundHttpException - name: Profile type: class source: Symfony\Component\HttpKernel\Profiler\Profile - name: Profiler type: class source: Symfony\Component\HttpKernel\Profiler\Profiler - name: Environment type: class source: Twig\Environment - name: LoaderInterface type: class source: Twig\Loader\LoaderInterface properties: [] methods: - name: testGetNameValidTemplate visibility: public parameters: [] comment: "# * @author Artur Wielog\xF3rski \n# */\n# class TemplateManagerTest\ \ extends TestCase\n# {\n# protected Environment $twigEnvironment;\n# protected\ \ Profiler $profiler;\n# protected TemplateManager $templateManager;\n# \n# protected\ \ function setUp(): void\n# {\n# parent::setUp();\n# \n# $this->profiler = $this->createMock(Profiler::class);\n\ # $twigEnvironment = $this->mockTwigEnvironment();\n# $templates = [\n# 'data_collector.foo'\ \ => ['foo', '@Foo/Collector/foo.html.twig'],\n# 'data_collector.bar' => ['bar',\ \ '@Foo/Collector/bar.html.twig'],\n# 'data_collector.baz' => ['baz', '@Foo/Collector/baz.html.twig'],\n\ # ];\n# \n# $this->templateManager = new TemplateManager($this->profiler, $twigEnvironment,\ \ $templates);\n# }\n# \n# public function testGetNameOfInvalidTemplate()\n# {\n\ # $this->expectException(NotFoundHttpException::class);\n# $this->templateManager->getName(new\ \ Profile('token'), 'notexistingpanel');\n# }\n# \n# /**\n# * if template exists\ \ in both profile and profiler then its name should be returned." - name: profilerHasCallback visibility: public parameters: - name: panel comment: null - name: profileHasCollectorCallback visibility: public parameters: - name: panel comment: null - name: mockTwigEnvironment visibility: protected parameters: [] comment: null - name: __construct visibility: public parameters: [] comment: null - name: hasCollector visibility: public parameters: - name: name comment: null traits: - Symfony\Bundle\WebProfilerBundle\Profiler\TemplateManager - Symfony\Bundle\WebProfilerBundle\Tests\TestCase - Symfony\Component\HttpKernel\Exception\NotFoundHttpException - Symfony\Component\HttpKernel\Profiler\Profile - Symfony\Component\HttpKernel\Profiler\Profiler - Twig\Environment - Twig\Loader\LoaderInterface interfaces: []