1
0
mirror of synced 2024-12-13 14:56:01 +03:00
doctrine2/tests/ManagerTestCase.class.php
doctrine 571cb46726
2006-04-13 20:37:28 +00:00

24 lines
857 B
PHP

<?php
require_once("UnitTestCase.class.php");
class Doctrine_ManagerTestCase extends Doctrine_UnitTestCase {
public function testGetInstance() {
$this->assertTrue(Doctrine_Manager::getInstance() instanceOf Doctrine_Manager);
}
public function testOpenSession() {
$this->assertTrue($this->session instanceOf Doctrine_Session);
}
public function testGetIterator() {
$this->assertTrue($this->manager->getIterator() instanceof ArrayIterator);
}
public function testCount() {
$this->assertEqual(count($this->manager),1);
}
public function testGetCurrentSession() {
$this->assertEqual($this->manager->getCurrentSession(), $this->session);
}
public function testGetSessions() {
$this->assertEqual(count($this->manager->getSessions()),1);
}
}
?>