1
0
mirror of synced 2024-12-14 07:06:04 +03:00
doctrine2/tests/BatchIteratorTestCase.class.php
doctrine 5607189453
2006-04-14 10:20:19 +00:00

16 lines
488 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->assertEqual(gettype($entity->name),"string");
$i++;
}
$this->assertTrue($i == $entities->count());
}
}
?>