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);
 }
 protected function tearDown()
 {
     parent::tearDown();
     $this->locator = null;
     $this->parser = null;
     $this->loader = null;
 }
 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')));
 }
 protected function tearDown()
 {
     parent::tearDown();
     $this->controller = null;
     $this->container = null;
     $this->flatten = null;
     $this->templating = null;
     $this->kernel = null;
 }