Remove deprecated each function
This commit is contained in:
parent
ccb6543839
commit
232caad876
@ -170,9 +170,10 @@ class TwigExtensionTest extends TestCase
|
|||||||
|
|
||||||
$calls = $container->getDefinition('twig')->getMethodCalls();
|
$calls = $container->getDefinition('twig')->getMethodCalls();
|
||||||
foreach (array_slice($calls, 1) as $call) {
|
foreach (array_slice($calls, 1) as $call) {
|
||||||
list($name, $value) = each($globals);
|
$this->assertEquals(key($globals), $call[1][0]);
|
||||||
$this->assertEquals($name, $call[1][0]);
|
$this->assertSame(current($globals), $call[1][1]);
|
||||||
$this->assertSame($value, $call[1][1]);
|
|
||||||
|
next($globals);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user