This commit is contained in:
Fabien Potencier
2017-08-16 08:33:11 +02:00
parent 90a07d166d
commit a3548a6e23
+2 -2
View File
@@ -264,7 +264,7 @@ class Twig_Tests_Extension_CoreTest extends \PHPUnit\Framework\TestCase
array(array(), new CoreTestIterator($i, $keys, true), count($keys) + 10),
array('de', 'abcdef', 3, 2),
array(array(), new SimpleXMLElement('<items><item>1</item><item>2</item></items>'), 3),
array(array(), new ArrayIterator(array(1, 2)), 3)
array(array(), new ArrayIterator(array(1, 2)), 3),
);
}
}
@@ -344,7 +344,7 @@ final class CoreTestIterator implements Iterator
{
++$this->position;
if ($this->position === $this->maxPosition) {
throw new LogicException(sprintf('Code should not iterate beyond %d.', $this->maxPosition));
throw new LogicException(sprintf('Code should not iterate beyond %d.', $this->maxPosition));
}
}