1
0
mirror of synced 2025-01-18 14:31:40 +03:00
doctrine2/tests/EventListenerTestCase.class.php
doctrine 571cb46726
2006-04-13 20:37:28 +00:00

14 lines
484 B
PHP

<?php
require_once("UnitTestCase.class.php");
class Doctrine_EventListenerTestCase extends Doctrine_UnitTestCase {
public function testEvents() {
$session = $this->manager->openSession(Doctrine_DB::getConnection());
$debug = $this->listener->getMessages();
$last = end($debug);
$this->assertTrue($last->getObject() instanceof Doctrine_Session);
$this->assertTrue($last->getCode() == Doctrine_Debugger::EVENT_OPEN);
}
}
?>