2006-04-14 00:37:28 +04:00
|
|
|
<?php
|
2006-06-07 00:37:56 +04:00
|
|
|
require_once("UnitTestCase.php");
|
2006-04-14 00:37:28 +04:00
|
|
|
|
|
|
|
class Doctrine_EventListenerTestCase extends Doctrine_UnitTestCase {
|
|
|
|
public function testEvents() {
|
2006-08-23 00:14:29 +04:00
|
|
|
$connection = $this->manager->openConnection(Doctrine_DB::getConn("sqlite::memory:"));
|
2006-04-14 00:37:28 +04:00
|
|
|
$debug = $this->listener->getMessages();
|
|
|
|
$last = end($debug);
|
2006-08-22 03:20:33 +04:00
|
|
|
$this->assertTrue($last->getObject() instanceof Doctrine_Connection);
|
2006-06-03 13:10:43 +04:00
|
|
|
$this->assertTrue($last->getCode() == Doctrine_EventListener_Debugger::EVENT_OPEN);
|
2006-04-14 00:37:28 +04:00
|
|
|
}
|
2006-06-03 13:10:43 +04:00
|
|
|
public function prepareData() { }
|
2006-05-15 16:15:20 +04:00
|
|
|
public function prepareTables() { }
|
2006-04-14 00:37:28 +04:00
|
|
|
}
|
|
|
|
?>
|