本文整理汇总了PHP中Orchestra\Testbench\TestCase::tearDown方法的典型用法代码示例。如果您正苦于以下问题:PHP TestCase::tearDown方法的具体用法?PHP TestCase::tearDown怎么用?PHP TestCase::tearDown使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Orchestra\Testbench\TestCase
的用法示例。
在下文中一共展示了TestCase::tearDown方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tearDown
/**
* Clean up the testing environment before the next test.
*
* @return void
*/
public function tearDown()
{
parent::tearDown();
unset($this->engine);
unset($this->ourConfigPath);
unset($this->bridge);
}
示例2: tearDown
public function tearDown()
{
parent::tearDown();
if (file_exists($this->testImage)) {
unlink($this->testImage);
}
}
示例3: tearDown
/**
* Tear down test.
*
* @return void
*/
public function tearDown()
{
parent::tearDown();
unset($this->dilemma);
unset($this->resolution);
unset($this->map);
}
示例4: tearDown
public function tearDown()
{
$customPath = $this->app['path.public'] . '/custom';
$this->app['config']->set('image.write_path', $customPath);
Image::deleteManipulated($this->imagePath);
parent::tearDown();
}
示例5: tearDown
public function tearDown()
{
parent::tearDown();
if ($container = Mockery::getContainer()) {
$this->addToAssertionCount($container->mockery_getExpectationCount());
}
Mockery::close();
}
示例6: tearDown
public function tearDown()
{
\DB::statement("SET FOREIGN_KEY_CHECKS = 0;");
\DB::statement("drop table if exists tests;");
\DB::statement("drop table if exists migrations;");
\DB::statement("SET FOREIGN_KEY_CHECKS = 1;");
parent::tearDown();
}
示例7: tearDown
public function tearDown()
{
if ($this->useDatabase === true) {
$this->db->disconnect('testbench');
$this->tearDownDatabase();
}
parent::tearDown();
}
示例8: tearDown
/**
* Clean up the testing environment before the next test.
*
* @return void
*/
public function tearDown()
{
parent::tearDown();
unset($this->problem);
unset($this->problemColumn);
unset($this->problemOption);
unset($this->problemColumnCategoricalRange);
unset($this->problemColumnDateRange);
unset($this->problemColumnValueRange);
unset($this->faker);
}
示例9: tearDown
public function tearDown()
{
if ($this->application) {
$accountStoreMappings = $this->application->accountStoreMappings;
if ($accountStoreMappings) {
foreach ($accountStoreMappings as $asm) {
$accountStore = $asm->accountStore;
$asm->delete();
$accountStore->delete();
}
}
$this->application->delete();
$this->application = null;
}
parent::tearDown();
}
示例10: tearDown
/**
* Tear down environment after tests
*/
public function tearDown()
{
$this->artisan('migrate:rollback', ['--database' => 'sqlite']);
parent::tearDown();
}
示例11: tearDown
public function tearDown()
{
if ($this->file) {
unlink($this->file);
//delete the file after each test
}
parent::tearDown();
}
示例12: tearDown
public function tearDown()
{
$this->server->stop();
parent::tearDown();
}
示例13: tearDown
public function tearDown()
{
Mockery::close();
parent::tearDown();
}
示例14: tearDown
public function tearDown()
{
parent::tearDown();
m::close();
}
示例15: tearDown
/**
*
*/
public function tearDown()
{
$this->artisan('migrate:reset', ['--database' => 'testbench']);
parent::tearDown();
}