From ae08b2878725cddfe8e1f2f879add68086ef01d4 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 24 Aug 2011 12:54:04 +0200 Subject: [PATCH] renamed a test file --- test/Twig/Tests/Loader/ArrayLoaderTest.php | 61 ---------------------------- test/Twig/Tests/Loader/ArrayTest.php | 61 ++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+), 61 deletions(-) delete mode 100644 test/Twig/Tests/Loader/ArrayLoaderTest.php create mode 100644 test/Twig/Tests/Loader/ArrayTest.php diff --git a/test/Twig/Tests/Loader/ArrayLoaderTest.php b/test/Twig/Tests/Loader/ArrayLoaderTest.php deleted file mode 100644 index 38a8f89..0000000 --- a/test/Twig/Tests/Loader/ArrayLoaderTest.php +++ /dev/null @@ -1,61 +0,0 @@ - 'bar')); - - $this->assertEquals('bar', $loader->getSource('foo')); - } - - /** - * @expectedException Twig_Error_Loader - */ - public function testGetSourceWhenTemplateDoesNotExist() - { - $loader = new Twig_Loader_Array(array()); - - $loader->getSource('foo'); - } - - public function testGetCacheKey() - { - $loader = new Twig_Loader_Array(array('foo' => 'bar')); - - $this->assertEquals('bar', $loader->getCacheKey('foo')); - } - - /** - * @expectedException Twig_Error_Loader - */ - public function testGetCacheKeyWhenTemplateDoesNotExist() - { - $loader = new Twig_Loader_Array(array()); - - $loader->getCacheKey('foo'); - } - - public function testSetTemplate() - { - $loader = new Twig_Loader_Array(array()); - $loader->setTemplate('foo', 'bar'); - - $this->assertEquals('bar', $loader->getSource('foo')); - } - - public function testIsFresh() - { - $loader = new Twig_Loader_Array(array('foo' => 'bar')); - $this->assertTrue($loader->isFresh('foo', time())); - } -} diff --git a/test/Twig/Tests/Loader/ArrayTest.php b/test/Twig/Tests/Loader/ArrayTest.php new file mode 100644 index 0000000..38a8f89 --- /dev/null +++ b/test/Twig/Tests/Loader/ArrayTest.php @@ -0,0 +1,61 @@ + 'bar')); + + $this->assertEquals('bar', $loader->getSource('foo')); + } + + /** + * @expectedException Twig_Error_Loader + */ + public function testGetSourceWhenTemplateDoesNotExist() + { + $loader = new Twig_Loader_Array(array()); + + $loader->getSource('foo'); + } + + public function testGetCacheKey() + { + $loader = new Twig_Loader_Array(array('foo' => 'bar')); + + $this->assertEquals('bar', $loader->getCacheKey('foo')); + } + + /** + * @expectedException Twig_Error_Loader + */ + public function testGetCacheKeyWhenTemplateDoesNotExist() + { + $loader = new Twig_Loader_Array(array()); + + $loader->getCacheKey('foo'); + } + + public function testSetTemplate() + { + $loader = new Twig_Loader_Array(array()); + $loader->setTemplate('foo', 'bar'); + + $this->assertEquals('bar', $loader->getSource('foo')); + } + + public function testIsFresh() + { + $loader = new Twig_Loader_Array(array('foo' => 'bar')); + $this->assertTrue($loader->isFresh('foo', time())); + } +} -- 1.7.2.5