Definition at line 307 of file CoreTest.php.
◆ __construct()
CoreTestIterator::__construct |
( |
array |
$values, |
|
|
array |
$keys, |
|
|
|
$allowValueAccess = false , |
|
|
|
$maxPosition = false |
|
) |
| |
◆ current()
CoreTestIterator::current |
( |
| ) |
|
Definition at line 329 of file CoreTest.php.
331 if ($this->allowValueAccess) {
332 return $this->array[$this->
key()];
335 throw new LogicException(
'Code should only use the keys, not the values provided by iterator.');
◆ key()
CoreTestIterator::key |
( |
| ) |
|
◆ next()
CoreTestIterator::next |
( |
| ) |
|
Definition at line 343 of file CoreTest.php.
346 if ($this->position === $this->maxPosition) {
347 throw new LogicException(sprintf(
'Code should not iterate beyond %d.', $this->maxPosition));
◆ rewind()
CoreTestIterator::rewind |
( |
| ) |
|
◆ valid()
CoreTestIterator::valid |
( |
| ) |
|
Definition at line 351 of file CoreTest.php.
353 return isset($this->arrayKeys[$this->position]);
◆ $allowValueAccess
CoreTestIterator::$allowValueAccess |
|
private |
◆ $array
◆ $arrayKeys
CoreTestIterator::$arrayKeys |
|
private |
◆ $maxPosition
CoreTestIterator::$maxPosition |
|
private |
◆ $position
CoreTestIterator::$position |
|
private |
The documentation for this class was generated from the following file:
- libs/composer/vendor/twig/twig/test/Twig/Tests/Extension/CoreTest.php