public function testExists() { $engine = $this->getEngineMock('template.php', true); $engine->expects($this->once())->method('exists')->with('template.php')->will($this->returnValue(true)); $delegatingEngine = new DelegatingEngine(array($engine)); $this->assertTrue($delegatingEngine->exists('template.php')); }