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