removed unneeded implementation of Template::getTemplateName()

This commit is contained in:
Fabien Potencier
2011-08-07 17:26:48 +02:00
parent 112a16bfde
commit fd0573103e
2 changed files with 5 additions and 4 deletions
+1 -4
View File
@@ -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.
+4
View File
@@ -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)
{
}