public function testGetSource() { $loader = new Twig_Loader_Array(array( 'foo' => 'bar', )); $this ->assertEquals('bar', $loader ->getSource('foo')); }