Ejemplo n.º 1
0
 function setUp()
 {
     $this->db = \phpunit_bootstrap::getServiceManager()->get('Zend\\Db\\Adapter\\Adapter');
     $this->db->getDriver()->getConnection()->beginTransaction();
     $this->dataMapper = new DataMapper($this->db);
 }
Ejemplo n.º 2
0
 function setUp()
 {
     $this->db = phpunit_bootstrap::getServiceManager()->get('Zend\\Db\\Adapter\\Adapter');
     $this->emptyTables();
 }