1
0
mirror of synced 2024-12-14 15:16:04 +03:00
doctrine2/tests/lib/mocks/Doctrine_EntityManagerMock.php

28 lines
522 B
PHP

<?php
require_once 'lib/mocks/Doctrine_EntityPersisterMock.php';
class Doctrine_EntityManagerMock extends Doctrine_EntityManager
{
private $_persisterMock;
/**
* Enter description here...
*
* @param unknown_type $entityName
* @override
*/
public function getEntityPersister($entityName)
{
return $this->_persisterMock;
}
/* Mock API */
public function setEntityPersister($persister)
{
$this->_persisterMock = $persister;
}
}
?>