本文整理匯總了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();
}