public function testTemplates() { $this->assertInternalType('array', $this->pool->getTemplates()); $this->pool->setTemplates(array('ajax' => 'Foo.html.twig')); $this->assertNull($this->pool->getTemplate('bar')); $this->assertEquals('Foo.html.twig', $this->pool->getTemplate('ajax')); }