Returns toolbar template for given collector name.
public getToolbarTemplate ( string $collectorName ) : string | ||
$collectorName | string | Name of corresponding collector. |
리턴 | string |
public function testGetToolbarTemplate() { $collector = $this->getMock('\\Symfony\\Component\\HttpKernel\\DataCollector\\DataCollectorInterface'); $name = 'foobar'; $collector->expects($this->once())->method('getName')->will($this->returnValue($name)); $toolbarTemplate = 'toolbar.html.twig'; $this->mainCollector->addCollector($collector, 'foo', $toolbarTemplate); $this->assertSame($toolbarTemplate, $this->mainCollector->getToolbarTemplate($name)); }