function setUp() { $this->pmf = XDO_Helper::getPersistenceManagerFactory('pgsql://*****:*****@localhost/xdo_test', XDO_BACKEND_MDB2); $pm = $this->pmf->getPersistenceManager(); $this->tx = $pm->currentTransaction(); $this->tx->begin(); $this->entity = new XDO_Entity_Test2(); }
function testGetPersistenceManager() { $pmf = XDO_Helper::getPersistenceManagerFactory('pgsql://*****:*****@localhost/xdo_test', XDO_BACKEND_MDB2); $pm = $pmf->getPersistenceManager(); $this->expected = true; $this->actual = is_object($pm); $this->verify(); }