From fd0573103e15bf9a817d0c341df4d48752983085 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sun, 7 Aug 2011 17:26:48 +0200 Subject: [PATCH] removed unneeded implementation of Template::getTemplateName() --- lib/Twig/Template.php | 5 +---- test/Twig/Tests/TemplateTest.php | 4 ++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/Twig/Template.php b/lib/Twig/Template.php index e7a7770..a129fd7 100644 --- a/lib/Twig/Template.php +++ b/lib/Twig/Template.php @@ -40,10 +40,7 @@ abstract class Twig_Template implements Twig_TemplateInterface * * @return string The template name */ - public function getTemplateName() - { - return null; - } + abstract public function getTemplateName(); /** * Returns the Twig environment. diff --git a/test/Twig/Tests/TemplateTest.php b/test/Twig/Tests/TemplateTest.php index dde383b..94b9204 100644 --- a/test/Twig/Tests/TemplateTest.php +++ b/test/Twig/Tests/TemplateTest.php @@ -130,6 +130,10 @@ class Twig_Tests_TemplateTest extends PHPUnit_Framework_TestCase class Twig_TemplateTest extends Twig_Template { + public function getTemplateName() + { + } + protected function doGetParent(array $context) { } -- 1.7.2.5