16 lines
480 B
PHP
16 lines
480 B
PHP
<?php
|
|
require_once("UnitTestCase.class.php");
|
|
class Doctrine_BatchIteratorTestCase extends Doctrine_UnitTestCase {
|
|
public function testIterator() {
|
|
$graph = new Doctrine_DQL_Parser($this->session);
|
|
$entities = $graph->query("FROM Entity");
|
|
$i = 0;
|
|
foreach($entities as $entity) {
|
|
$this->assertTrue(is_string($entity->name));
|
|
$i++;
|
|
}
|
|
$this->assertTrue($i == $entities->count());
|
|
}
|
|
}
|
|
?>
|