本文整理汇总了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();
}
示例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();
}
示例3: tearDown
public function tearDown()
{
foreach ($this->tearDownHandlers as $handler) {
$handler();
}
parent::tearDown();
}
示例4: tearDown
public function tearDown()
{
if ($this->api) {
$this->api->delete();
}
parent::tearDown();
}
示例5: tearDown
public function tearDown()
{
if (is_file(__DIR__ . '/Fixtures/configuration-maintenance.php')) {
unlink(__DIR__ . '/Fixtures/configuration-maintenance.php');
}
parent::tearDown();
}
示例6: tearDown
public function tearDown()
{
$this->media = null;
if (file_exists($this->filename)) {
unlink($this->filename);
}
parent::tearDown();
}
示例7: tearDown
public function tearDown()
{
$finder = new Finder();
$finder->files()->in($this->root);
foreach ($finder as $file) {
unlink($file->getRealPath());
}
parent::tearDown();
}
示例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();
}
示例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();
}
示例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();
}
示例11: tearDown
public function tearDown()
{
unset($this->object);
parent::tearDown();
}
示例12: tearDown
public function tearDown()
{
$this->logout(self::$DI['app']);
parent::tearDown();
}
示例13: tearDown
public function tearDown()
{
$this->object->delete();
parent::tearDown();
}
示例14: tearDown
/**
* @covers Alchemy\Phrasea\Border\Attribute\Metadata::__destruct
*/
public function tearDown()
{
$this->object = null;
parent::tearDown();
}
示例15: tearDown
public function tearDown()
{
$this->clean();
parent::tearDown();
}