35 lines
951 B
PHP
35 lines
951 B
PHP
|
<?php
|
||
|
|
||
|
require_once 'lib/DoctrineTestInit.php';
|
||
|
require_once 'lib/mocks/Doctrine_HydratorMockStatement.php';
|
||
|
|
||
|
/**
|
||
|
* Description of HydrationTest
|
||
|
*
|
||
|
* @author robo
|
||
|
*/
|
||
|
class Orm_Hydration_HydrationTest extends Doctrine_OrmTestCase
|
||
|
{
|
||
|
protected $_em;
|
||
|
|
||
|
protected function setUp()
|
||
|
{
|
||
|
parent::setUp();
|
||
|
$this->_em = $this->_getTestEntityManager();
|
||
|
}
|
||
|
|
||
|
/** Helper method */
|
||
|
protected function _createParserResult($stmt, $queryComponents, $tableToClassAliasMap,
|
||
|
$hydrationMode, $isMixedQuery = false)
|
||
|
{
|
||
|
$parserResult = new Doctrine_ORM_Query_ParserResultDummy();
|
||
|
$parserResult->setDatabaseStatement($stmt);
|
||
|
$parserResult->setHydrationMode($hydrationMode);
|
||
|
$parserResult->setQueryComponents($queryComponents);
|
||
|
$parserResult->setTableToClassAliasMap($tableToClassAliasMap);
|
||
|
$parserResult->setMixedQuery($isMixedQuery);
|
||
|
return $parserResult;
|
||
|
}
|
||
|
}
|
||
|
|