Registers a Test.
string $name The test name:
Twig_TestInterface $test A Twig_TestInterface instance:
public function addTest($name, Twig_TestInterface $test) { $this->staging['tests'][$name] = $test; $this->tests = null; }