public function tearDown() { if (file_exists($this->tmpFile)) { unlink($this->tmpFile); } parent::tearDown(); }
public function tearDown() { if (self::$GV_activeFTP) { self::$DI['app']['conf']->set(['registry', 'ftp', 'ftp-enabled'], true); } self::$GV_activeFTP = null; parent::tearDown(); }
public function tearDown() { if (self::$api instanceof \Bridge_Api) { self::$api->delete(); } if (self::$account instanceof \Bridge_Account) { self::$account->delete(); } parent::tearDown(); }
public function tearDown() { self::$DI['app']['acl'] = new ACLProvider(self::$DI['app']); foreach (self::$createdCollections as $collection) { try { $collection->unmount_collection(self::$DI['app']); } catch (\Exception $e) { } try { $collection->delete(); } catch (\Exception $e) { } } self::$createdCollections = []; // /!\ re enable collection self::$DI['collection']->enable(self::$DI['app']['phraseanet.appbox']); parent::tearDown(); }
public function tearDown() { if (!self::$createdCollections) { parent::tearDown(); return; } foreach (self::$createdCollections as $collection) { try { $collection->unmount_collection(self::$DI['app']); } catch (\Exception $e) { } try { $collection->delete(); } catch (\Exception $e) { } } self::$createdCollections = null; parent::tearDown(); }
/** * @covers Alchemy\Phrasea\Border\Manager::__destruct */ public function tearDown() { $this->object = null; parent::tearDown(); }
public function tearDown() { $this->resetTOU(); parent::tearDown(); }
public function tearDown() { parent::tearDown(); }