public function testValidNoResults()
 {
     $q = $this->session->createFindQuery('PersistentTestObject');
     $q->where($q->expr->gt($this->db->quoteIdentifier('id'), 42));
     $stmt = $q->prepare();
     $stmt->execute();
     $it = new ezcPersistentFindIterator($stmt, $this->manager->fetchDefinition('PersistentTestObject'));
     $it->rewind();
     $this->assertEquals(null, $it->next());
     $this->assertEquals(false, $it->valid());
     // we check two times to make sure that there is no state problems triggering the first time
     $this->assertEquals(null, $it->next());
     $this->assertEquals(false, $it->valid());
 }