1
0
mirror of synced 2024-12-13 22:56:04 +03:00
doctrine2/tests/lib/mocks/Doctrine_EntityManagerMock.php

28 lines
522 B
PHP
Raw Normal View History

<?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;
}
}
?>