mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-18 13:26:37 +00:00
fixed a unit test as Twig_ExistsLoaderInterface has been merged into Twig_LoaderInterface
This commit is contained in:
@@ -68,7 +68,8 @@ class Twig_Tests_Loader_ChainTest extends PHPUnit_Framework_TestCase
|
||||
$loader1->expects($this->never())->method('getSource');
|
||||
|
||||
$loader2 = $this->getMock('Twig_LoaderInterface');
|
||||
$loader2->expects($this->once())->method('getSource')->will($this->returnValue('content'));
|
||||
$loader2->expects($this->once())->method('exists')->will($this->returnValue(true));
|
||||
$loader2->expects($this->never())->method('getSource');
|
||||
|
||||
$loader = new Twig_Loader_Chain();
|
||||
$loader->addLoader($loader1);
|
||||
|
||||
Reference in New Issue
Block a user