1
0
mirror of synced 2024-12-14 23:26:04 +03:00

Add clone query test

This commit is contained in:
Eric GELOEN 2012-07-07 17:27:32 +02:00
parent 8c24e528ad
commit 3bdf86922c

View File

@ -128,6 +128,17 @@ class PaginationTest extends \Doctrine\Tests\OrmFunctionalTestCase
count($paginator);
}
public function testCloneQuery()
{
$dql = "SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u";
$query = $this->_em->createQuery($dql);
$paginator = new Paginator($query);
$paginator->getIterator();
$this->assertTrue($query->getParameters()->isEmpty());
}
public function populate()
{
for ($i = 0; $i < 3; $i++) {