Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public function testFromPath() { $ref = Reference::fromPath('FooBarBundle', 'baz/test.html.twig'); $this->assertEquals('FooBarBundle::mockup/baz/test.html.twig', $ref->getTemplateReference()); $this->assertEquals('baz/test.html', $ref->getShortReference()); $this->assertEquals(1, $ref->getDepthLevel()); }