session); $entities = $graph->query("FROM Entity"); $i = 0; foreach($entities as $entity) { $this->assertEqual(gettype($entity->name),"string"); $i++; } $this->assertTrue($i == $entities->count()); } } ?>