1
0
mirror of synced 2025-01-09 18:47:10 +03:00
doctrine2/tests/lib/mocks/Doctrine_ConnectionMock.php

20 lines
432 B
PHP
Raw Normal View History

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