Skip to content

Commit

Permalink
Remove some invalid assertions from PaginationTest::testIterateWithFe…
Browse files Browse the repository at this point in the history
…tchJoin

Non-deterministic result on pgsql showed this.
  • Loading branch information
Bill Schaller committed Mar 19, 2015
1 parent a792bbf commit 07436dd
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions tests/Doctrine/Tests/ORM/Functional/PaginationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,22 +211,6 @@ public function testIterateWithFetchJoin($useOutputWalkers)
$paginator = new Paginator($query, true);
$paginator->setUseOutputWalkers($useOutputWalkers);
$this->assertCount(9, $paginator->getIterator());

$query->setMaxResults(3);
$paginator = new Paginator($query, true);
$paginator->setUseOutputWalkers($useOutputWalkers);
$iter = $paginator->getIterator();
$this->assertCount(3, $iter);
$result = iterator_to_array($iter);
$this->assertEquals('username0', $result[0]->username);

$query->setFirstResult(3);
$paginator = new Paginator($query, true);
$paginator->setUseOutputWalkers($useOutputWalkers);
$iter = $paginator->getIterator();
$this->assertCount(3, $iter);
$result = iterator_to_array($iter);
$this->assertEquals('username3', $result[0]->username);
}

/**
Expand Down

0 comments on commit 07436dd

Please sign in to comment.