1
0
mirror of synced 2024-12-14 23:26:04 +03:00
doctrine2/tests/lib/mocks/Doctrine_ConnectionMock.php
2008-07-27 19:38:56 +00:00

20 lines
433 B
PHP

<?php
require_once 'lib/mocks/Doctrine_SequenceMock.php';
class Doctrine_ConnectionMock extends Doctrine_Connection
{
protected $_driverName = 'Mysql';
private $_sequenceModuleMock;
public function getSequenceManager()
{
if ( ! $this->_sequenceModuleMock) {
$this->_sequenceModuleMock = new Doctrine_SequenceMock($this);
}
return $this->_sequenceModuleMock;
}
}
?>