コード例 #1
0
 /**
  * Clean up data when through.
  */
 public function tearDown()
 {
     $this->xpdo->getManager();
     $this->xpdo->manager->removeObjectContainer('Item');
     parent::tearDown();
 }
コード例 #2
0
 /**
  * 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
ファイル: xPDOQuery.php プロジェクト: node-migrator-bot/xpdo
 /**
  * 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
ファイル: xPDOTransport.php プロジェクト: christianseel/xpdo
 public function setUp()
 {
     parent::setUp();
     $this->xpdo->loadClass('transport.xPDOTransport', XPDO_CORE_PATH, true, true);
 }