public function testExistsWithBaseLoader()
{
$mockLoader = $this->getMock('Twig_LoaderInterface');
$mockLoader->expects($this->once())->method('getSource')->with($this->equalTo('foo'));
$mockLoader->expects($this->never())->method('exists');
$twitalLoader = new TwitalLoader($mockLoader, null, false);
$this->assertTrue($twitalLoader->exists('foo'));
}