You are here

class TestIterator2 in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/tests/_files/TestIterator2.php \TestIterator2

Hierarchy

Expanded class hierarchy of TestIterator2

File

vendor/phpunit/phpunit/tests/_files/TestIterator2.php, line 2

View source
class TestIterator2 implements Iterator {
  protected $data;
  public function __construct(array $array) {
    $this->data = $array;
  }
  public function current() {
    return current($this->data);
  }
  public function next() {
    next($this->data);
  }
  public function key() {
    return key($this->data);
  }
  public function valid() {
    return key($this->data) !== null;
  }
  public function rewind() {
    reset($this->data);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
TestIterator2::$data protected property
TestIterator2::current public function
TestIterator2::key public function
TestIterator2::next public function
TestIterator2::rewind public function
TestIterator2::valid public function
TestIterator2::__construct public function