1
0
mirror of synced 2025-01-19 06:51:40 +03:00
doctrine2/tests/EventListenerTestCase.php

16 lines
592 B
PHP
Raw Normal View History

2006-04-13 20:37:28 +00:00
<?php
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() { }
public function prepareTables() { }
2006-04-13 20:37:28 +00:00
}
?>