Gets the registered Tests.
Twig_TestInterface[] An array of Twig_TestInterface instances
public function getTests() {
if (null === $this->tests) {
foreach ($this
->getExtensions() as $extension) {
foreach ($extension
->getTests() as $name => $test) {
$this
->addTest($name, $test);
}
}
$this->tests = $this->staging['tests'];
}
return $this->tests;
}