本文整理汇总了PHP中PHPUnit_Framework_TestCase::tearDownAfterClass方法的典型用法代码示例。如果您正苦于以下问题:PHP PHPUnit_Framework_TestCase::tearDownAfterClass方法的具体用法?PHP PHPUnit_Framework_TestCase::tearDownAfterClass怎么用?PHP PHPUnit_Framework_TestCase::tearDownAfterClass使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PHPUnit_Framework_TestCase
的用法示例。
在下文中一共展示了PHPUnit_Framework_TestCase::tearDownAfterClass方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tearDownAfterClass
/**
* {@inheritdoc}
*/
public static function tearDownAfterClass()
{
parent::tearDownAfterClass();
foreach (self::$filesToRemove as $file) {
unlink($file);
}
}
示例2: tearDownAfterClass
/**
* {@inheritdoc}
*/
public static function tearDownAfterClass()
{
parent::tearDownAfterClass();
$cmd = sprintf('kill %d', self::$webServerPid);
exec(escapeshellcmd($cmd));
self::$webServerPid = null;
}
示例3: tearDownAfterClass
public static function tearDownAfterClass()
{
if (self::$isGdInstalled) {
self::$testDir->remove();
}
parent::tearDownAfterClass();
}
示例4: tearDownAfterClass
/**
* Clean up afterwards.
*
* @return void
*
* @since 12.3
*/
public static function tearDownAfterClass()
{
// Clean up files
@unlink(__DIR__ . '/data/web-keychain.dat');
@unlink(__DIR__ . '/data/web-passphrase.dat');
parent::tearDownAfterClass();
}
示例5: tearDownAfterClass
public static function tearDownAfterClass()
{
parent::tearDownAfterClass();
$fs = new Filesystem();
foreach (self::$cleanup as $folder) {
$fs->remove($folder);
}
}
示例6: tearDownAfterClass
public static function tearDownAfterClass()
{
parent::tearDownAfterClass();
$cacheDir = __DIR__ . "/../../cache/";
foreach (glob($cacheDir . "*") as $cacheFile) {
unlink($cacheFile);
}
}
示例7: tearDownAfterClass
public static function tearDownAfterClass()
{
parent::tearDownAfterClass();
//restore the StableUpdate log to previous contents
if (isset(self::$logContents)) {
file_put_contents(__DIR__ . '/../../Includes/StableUpdate.log', self::$logContents);
}
}
示例8: tearDownAfterClass
/**
* 清理测试环境
*/
public static function tearDownAfterClass()
{
parent::tearDownAfterClass();
AppHelper::Instance()->config("APP_CTRL", 'TestControllers1/');
$CPath = APPPATH . AppHelper::Instance()->config("APP_CTRL");
rename($CPath, dirname(__FILE__) . "/TestControllers1/");
unlink(APPPATH . "/temp/testForCmd.text");
}
示例9: tearDownAfterClass
public static function tearDownAfterClass()
{
parent::tearDownAfterClass();
ControlResolver::setAppPath(APPPATH);
AppHelper::Instance()->config("APP_CTRL", self::$_APP_CTRL);
AppHelper::Instance()->config("CMD_FILTER", '');
//恢复默认
}
示例10: tearDownAfterClass
/**
* Delete the workspace if it exists
*
* @return void
*/
public static function tearDownAfterClass()
{
parent::tearDownAfterClass();
if (self::$workspacePath) {
self::cmd('rm -rf ?', null, self::$workspacePath);
self::$workspacePath = null;
}
}
示例11: tearDownAfterClass
public static function tearDownAfterClass()
{
if (is_array(self::$comparators)) {
array_map(array(Factory::getInstance(), 'unregister'), self::$comparators);
self::$comparators = null;
}
parent::tearDownAfterClass();
}
示例12: tearDownAfterClass
/**
* Overrides the parent tearDown method.
*
* @return void
*
* @see PHPUnit_Framework_TestCase::tearDownAfterClass()
* @since 1.0
*/
public static function tearDownAfterClass()
{
$pidPath = JPATH_ROOT . '/japplicationdaemontest.pid';
if (file_exists($pidPath)) {
unlink($pidPath);
}
ini_restore('memory_limit');
parent::tearDownAfterClass();
}
示例13: tearDownAfterClass
public static function tearDownAfterClass()
{
parent::tearDownAfterClass();
$fs = new Filesystem();
//cleanup
if ($fs->exists(self::$nonceDir)) {
$fs->remove(self::$nonceDir);
}
}
示例14: tearDownAfterClass
public static function tearDownAfterClass()
{
$dataDir = \OC::$server->getConfig()->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data-autotest');
self::tearDownAfterClassCleanFileMapper($dataDir);
self::tearDownAfterClassCleanStorages();
self::tearDownAfterClassCleanFileCache();
self::tearDownAfterClassCleanStrayDataFiles($dataDir);
self::tearDownAfterClassCleanStrayHooks();
parent::tearDownAfterClass();
}
示例15: tearDownAfterClass
public static function tearDownAfterClass()
{
parent::tearDownAfterClass();
self::removeDatasets(self::$datasetRegistryTestClass);
foreach (self::$connectionPoolTestClass as $conn) {
$conn->disconnect();
}
self::$connectionPoolTestClass = array();
self::$datasetRegistryTestClass = null;
}