2008-02-09 21:59:19 +03:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* The outermost test suite for all orm related testcases & suites.
|
|
|
|
*
|
|
|
|
* Currently the orm suite uses a normal connection object.
|
|
|
|
* Upon separation of the DBAL and ORM package this suite should just use a orm
|
|
|
|
* connection/session/manager instance as the shared fixture.
|
|
|
|
*/
|
|
|
|
class Doctrine_OrmTestSuite extends Doctrine_TestSuite
|
|
|
|
{
|
2008-06-05 23:01:58 +04:00
|
|
|
protected function setUp()
|
|
|
|
{
|
2008-09-07 17:48:40 +04:00
|
|
|
$config = new Doctrine_Configuration();
|
2008-09-12 14:55:06 +04:00
|
|
|
$eventManager = new Doctrine_Common_EventManager();
|
2008-06-05 23:01:58 +04:00
|
|
|
$connectionOptions = array(
|
2008-09-07 17:48:40 +04:00
|
|
|
'driverClass' => 'Doctrine_ConnectionMock',
|
2008-06-05 23:01:58 +04:00
|
|
|
'user' => 'john',
|
|
|
|
'password' => 'wayne'
|
|
|
|
);
|
2008-09-07 17:48:40 +04:00
|
|
|
$em = Doctrine_EntityManager::create($connectionOptions, 'mockEM', $config, $eventManager);
|
2008-06-05 23:01:58 +04:00
|
|
|
$this->sharedFixture['em'] = $em;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected function tearDown()
|
|
|
|
{}
|
2008-02-09 21:59:19 +03:00
|
|
|
}
|