mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 11:56:50 +00:00
simplified code
This commit is contained in:
@@ -12,7 +12,6 @@
|
||||
class CustomExtensionTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
/**
|
||||
* @requires PHP 5.3
|
||||
* @dataProvider provideInvalidExtensions
|
||||
*/
|
||||
public function testGetInvalidOperators(Twig_ExtensionInterface $extension, $expectedExceptionMessage)
|
||||
@@ -42,10 +41,6 @@ class InvalidOperatorExtension implements Twig_ExtensionInterface
|
||||
$this->operators = $operators;
|
||||
}
|
||||
|
||||
public function initRuntime(Twig_Environment $environment)
|
||||
{
|
||||
}
|
||||
|
||||
public function getTokenParsers()
|
||||
{
|
||||
return array();
|
||||
@@ -71,18 +66,8 @@ class InvalidOperatorExtension implements Twig_ExtensionInterface
|
||||
return array();
|
||||
}
|
||||
|
||||
public function getGlobals()
|
||||
{
|
||||
return array();
|
||||
}
|
||||
|
||||
public function getOperators()
|
||||
{
|
||||
return $this->operators;
|
||||
}
|
||||
|
||||
public function getName()
|
||||
{
|
||||
return __CLASS__;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user