1
0
mirror of synced 2024-12-14 15:16:04 +03:00
doctrine2/tests/EventListenerTestCase.class.php

16 lines
570 B
PHP
Raw Normal View History

2006-04-14 00:37:28 +04:00
<?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);
}
public function prepareData() { }
public function prepareTables() { }
2006-04-14 00:37:28 +04:00
}
?>