1
0
mirror of synced 2024-12-17 00:18:42 +03:00
doctrine2/tests/lib/Doctrine_OrmTestSuite.php

26 lines
858 B
PHP
Raw Normal View History

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
{
protected function setUp()
{
2008-09-07 17:48:40 +04:00
$config = new Doctrine_Configuration();
$eventManager = new Doctrine_EventManager();
$connectionOptions = array(
2008-09-07 17:48:40 +04:00
'driverClass' => 'Doctrine_ConnectionMock',
'user' => 'john',
'password' => 'wayne'
);
2008-09-07 17:48:40 +04:00
$em = Doctrine_EntityManager::create($connectionOptions, 'mockEM', $config, $eventManager);
$this->sharedFixture['em'] = $em;
}
protected function tearDown()
{}
2008-02-09 21:59:19 +03:00
}