It looks like your layouts are set up correctly. I really didn’t know that you could return the mockery of ridicule until I saw your question and studied it.
, , getModelFactory() factory. .
, getModelFactory, , , mock factory.
, , . ZF , , , . Doctrine1.2, setUp() tearDown().
, factory. , , , . , 200 140 , .
, , . , . , sqlite , , . , . MySQL, , , , .
(, Doctrine. , , ):
public function setUp()
{
$this->bootstrap = new Zend_Application(
APPLICATION_ENV, APPLICATION_CONFIG);
parent::setUp();
$bootstrap = $this->bootstrap->getBootstrap();
$this->_conn = Doctrine_Manager::connection();
$this->_conn->beginTransaction();
}
public function tearDown()
{
$this->_conn->rollback();
$this->_conn->close();
}