当前位置: 首页>>代码示例>>PHP>>正文


PHP PhraseanetTestCase::tearDown方法代码示例

本文整理汇总了PHP中PhraseanetTestCase::tearDown方法的典型用法代码示例。如果您正苦于以下问题:PHP PhraseanetTestCase::tearDown方法的具体用法?PHP PhraseanetTestCase::tearDown怎么用?PHP PhraseanetTestCase::tearDown使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PhraseanetTestCase的用法示例。


在下文中一共展示了PhraseanetTestCase::tearDown方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: tearDown

 public function tearDown()
 {
     $app = new Application(Application::ENV_TEST);
     \phrasea::reset_sbasDatas($app['phraseanet.appbox']);
     \phrasea::reset_baseDatas($app['phraseanet.appbox']);
     parent::tearDown();
 }
开发者ID:luisbrito,项目名称:Phraseanet,代码行数:7,代码来源:InstallerTest.php

示例2: tearDown

 /**
  * @covers Alchemy\Phrasea\Border\Attribute\MetaField::__destruct
  */
 public function tearDown()
 {
     \PHPUnit_Framework_Error_Warning::$enabled = $this->before;
     \PHPUnit_Framework_Error_Notice::$enabled = $this->beforeNotice;
     $this->object = null;
     parent::tearDown();
 }
开发者ID:nlegoff,项目名称:Phraseanet,代码行数:10,代码来源:MetaFieldTest.php

示例3: tearDown

 public function tearDown()
 {
     foreach ($this->tearDownHandlers as $handler) {
         $handler();
     }
     parent::tearDown();
 }
开发者ID:luisbrito,项目名称:Phraseanet,代码行数:7,代码来源:AbstractSetupTester.php

示例4: tearDown

 public function tearDown()
 {
     if ($this->api) {
         $this->api->delete();
     }
     parent::tearDown();
 }
开发者ID:luisbrito,项目名称:Phraseanet,代码行数:7,代码来源:AccountSettingsTest.php

示例5: tearDown

 public function tearDown()
 {
     if (is_file(__DIR__ . '/Fixtures/configuration-maintenance.php')) {
         unlink(__DIR__ . '/Fixtures/configuration-maintenance.php');
     }
     parent::tearDown();
 }
开发者ID:luisbrito,项目名称:Phraseanet,代码行数:7,代码来源:MaintenanceSubscriberTest.php

示例6: tearDown

 public function tearDown()
 {
     $this->media = null;
     if (file_exists($this->filename)) {
         unlink($this->filename);
     }
     parent::tearDown();
 }
开发者ID:romainneutron,项目名称:Phraseanet,代码行数:8,代码来源:Sha256Test.php

示例7: tearDown

 public function tearDown()
 {
     $finder = new Finder();
     $finder->files()->in($this->root);
     foreach ($finder as $file) {
         unlink($file->getRealPath());
     }
     parent::tearDown();
 }
开发者ID:luisbrito,项目名称:Phraseanet,代码行数:9,代码来源:LogFileTestCase.php

示例8: tearDown

 public function tearDown()
 {
     if ($this->object) {
         $this->object->delete();
     }
     try {
         new Bridge_Api(self::$DI['app'], $this->id);
         $this->fail();
     } catch (Bridge_Exception_ApiNotFound $e) {
     }
     parent::tearDown();
 }
开发者ID:luisbrito,项目名称:Phraseanet,代码行数:12,代码来源:ApiTest.php

示例9: tearDown

 public function tearDown()
 {
     if ($this->object_mono instanceof databox_field) {
         $this->object_mono->delete();
     }
     if ($this->object_multi instanceof databox_field) {
         $this->object_multi->delete();
     }
     $extra = $this->databox->get_meta_structure()->get_element_by_name('Bonoboyoyo');
     if ($extra instanceof databox_field) {
         $extra->delete();
     }
     parent::tearDown();
 }
开发者ID:luisbrito,项目名称:Phraseanet,代码行数:14,代码来源:fieldTest.php

示例10: tearDown

 public function tearDown()
 {
     if ($this->object) {
         $this->object->delete();
     }
     try {
         new Bridge_Element(self::$DI['app'], $this->account, $this->id);
         $this->fail();
     } catch (Bridge_Exception_ElementNotFound $e) {
     }
     if ($this->api) {
         $this->api->delete();
     }
     parent::tearDown();
 }
开发者ID:luisbrito,项目名称:Phraseanet,代码行数:15,代码来源:ElementTest.php

示例11: tearDown

 public function tearDown()
 {
     unset($this->object);
     parent::tearDown();
 }
开发者ID:romainneutron,项目名称:Phraseanet,代码行数:5,代码来源:UpgradeTest.php

示例12: tearDown

 public function tearDown()
 {
     $this->logout(self::$DI['app']);
     parent::tearDown();
 }
开发者ID:nlegoff,项目名称:Phraseanet,代码行数:5,代码来源:PhraseanetAuthenticatedTestCase.php

示例13: tearDown

 public function tearDown()
 {
     $this->object->delete();
     parent::tearDown();
 }
开发者ID:romainneutron,项目名称:Phraseanet,代码行数:5,代码来源:TokenTest.php

示例14: tearDown

 /**
  * @covers Alchemy\Phrasea\Border\Attribute\Metadata::__destruct
  */
 public function tearDown()
 {
     $this->object = null;
     parent::tearDown();
 }
开发者ID:luisbrito,项目名称:Phraseanet,代码行数:8,代码来源:MetadataTest.php

示例15: tearDown

 public function tearDown()
 {
     $this->clean();
     parent::tearDown();
 }
开发者ID:nlegoff,项目名称:Phraseanet,代码行数:5,代码来源:ConfigurationTestCase.php


注:本文中的PhraseanetTestCase::tearDown方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。