/** * @covers Gacela\Collection\Statement::valid */ public function testValid() { foreach ($this->collection as $obj) { if ($this->collection->key() < 7) { $this->assertTrue($this->collection->valid()); } else { $this->assertFalse($this->collection->valid()); } } }