protected function setUp()
 {
     parent::setUp();
     $this->locator = $this->getMock('Symfony\\Bundle\\FrameworkBundle\\Templating\\Loader\\TemplateLocatorInterface');
     $this->parser = $this->getMock('Symfony\\Component\\Templating\\TemplateNameParserInterface');
     $this->loader = new FilesystemLoader($this->locator, $this->parser);
 }
Exemplo n.º 2
0
 protected function tearDown()
 {
     parent::tearDown();
     $this->locator = null;
     $this->parser = null;
     $this->loader = null;
 }
Exemplo n.º 3
0
 protected function setUp()
 {
     parent::setUp();
     $this->locator = $this->getMock('Symfony\\Component\\Config\\FileLocatorInterface');
     $this->parser = $this->getMock('Symfony\\Component\\Templating\\TemplateNameParserInterface');
     $this->loader = new FilesystemLoader($this->locator, $this->parser);
     $this->parser->expects($this->once())->method('parse')->with('name.engine.format')->will($this->returnValue(new TemplateReference('', '', 'name', 'engine', 'format')));
 }
Exemplo n.º 4
0
 protected function tearDown()
 {
     parent::tearDown();
     $this->controller = null;
     $this->container = null;
     $this->flatten = null;
     $this->templating = null;
     $this->kernel = null;
 }