mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 19:06:40 +00:00
minor #2117 changed a test to make it more robust (fabpot)
This PR was merged into the 1.x branch.
Discussion
----------
changed a test to make it more robust
Commits
-------
ec7a1c1 changed a test to make it more robust
This commit is contained in:
@@ -275,7 +275,13 @@ class Twig_Tests_EnvironmentTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertArrayHasKey('foo_binary', $twig->getBinaryOperators());
|
||||
$this->assertArrayHasKey('foo_global', $twig->getGlobals());
|
||||
$visitors = $twig->getNodeVisitors();
|
||||
$this->assertEquals('Twig_Tests_EnvironmentTest_NodeVisitor', get_class($visitors[2]));
|
||||
$found = false;
|
||||
foreach ($visitors as $visitor) {
|
||||
if ($visitor instanceof Twig_Tests_EnvironmentTest_NodeVisitor) {
|
||||
$found = true;
|
||||
}
|
||||
}
|
||||
$this->assertTrue($found);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user