1
0
mirror of synced 2024-12-13 14:56:01 +03:00
doctrine2/tests/EventListenerTestCase.php
2006-08-22 20:14:29 +00:00

16 lines
592 B
PHP

<?php
require_once("UnitTestCase.php");
class Doctrine_EventListenerTestCase extends Doctrine_UnitTestCase {
public function testEvents() {
$connection = $this->manager->openConnection(Doctrine_DB::getConn("sqlite::memory:"));
$debug = $this->listener->getMessages();
$last = end($debug);
$this->assertTrue($last->getObject() instanceof Doctrine_Connection);
$this->assertTrue($last->getCode() == Doctrine_EventListener_Debugger::EVENT_OPEN);
}
public function prepareData() { }
public function prepareTables() { }
}
?>