/**
  * Clean up data when through.
  */
 public function tearDown()
 {
     $this->xpdo->getManager();
     $this->xpdo->manager->removeObjectContainer('Item');
     parent::tearDown();
 }
 /**
  * Remove dummy data prior to each test.
  */
 public function tearDown()
 {
     try {
         $this->xpdo->manager->removeObjectContainer('sti.baseClass');
         $this->xpdo->manager->removeObjectContainer('sti.relClassOne');
         $this->xpdo->manager->removeObjectContainer('sti.relClassMany');
     } catch (Exception $e) {
         $this->xpdo->log(xPDO::LOG_LEVEL_ERROR, $e->getMessage(), '', __METHOD__, __FILE__, __LINE__);
     }
     parent::tearDown();
 }
示例#3
0
 /**
  * Remove dummy data prior to each test.
  */
 public function tearDown()
 {
     try {
         $this->xpdo->manager->removeObjectContainer('Phone');
         $this->xpdo->manager->removeObjectContainer('Person');
         $this->xpdo->manager->removeObjectContainer('PersonPhone');
         $this->xpdo->manager->removeObjectContainer('BloodType');
     } catch (Exception $e) {
         $this->xpdo->log(xPDO::LOG_LEVEL_ERROR, $e->getMessage(), '', __METHOD__, __FILE__, __LINE__);
     }
     parent::tearDown();
 }
示例#4
0
 public function setUp()
 {
     parent::setUp();
     $this->xpdo->loadClass('transport.xPDOTransport', XPDO_CORE_PATH, true, true);
 }