作者:Rikuforeve
项目:wik
protected function tearDown()
{
$this->pageDeleter->doDeletePoolOfPages($this->deletePoolOfPages);
$this->applicationFactory->clear();
$this->mwHooksHandler->restoreListedHooks();
parent::tearDown();
}
作者:jongfel
项目:SemanticMediaWik
protected function tearDown()
{
foreach ($this->subjectsToBeCleared as $subject) {
$this->getStore()->deleteSubject($subject->getTitle());
}
parent::tearDown();
}
作者:WolfgangFah
项目:SemanticMediaWik
protected function tearDown()
{
$pageDeleter = UtilityFactory::getInstance()->newPageDeleter();
$pageDeleter->doDeletePoolOfPages($this->subjects);
$this->mwHooksHandler->restoreListedHooks();
parent::tearDown();
}
作者:WolfgangFah
项目:SemanticMediaWik
protected function tearDown()
{
ApplicationFactory::getInstance()->clear();
$pageDeleter = UtilityFactory::getInstance()->newPageDeleter();
$pageDeleter->doDeletePoolOfPages($this->importedTitles);
parent::tearDown();
}
作者:WolfgangFah
项目:SemanticMediaWik
protected function tearDown()
{
$GLOBALS['wgEnableUploads'] = $this->wgEnableUploads;
$GLOBALS['wgFileExtensions'] = $this->wgFileExtensions;
$GLOBALS['wgVerifyMimeType'] = $this->wgVerifyMimeType;
parent::tearDown();
}
作者:jongfel
项目:SemanticMediaWik
protected function setUp()
{
parent::setUp();
// Variable set using phpunit.xml
if (isset($GLOBALS['benchmarkQueryRepetitionExecutionThreshold'])) {
$this->repetitionExecutionThreshold = $GLOBALS['benchmarkQueryRepetitionExecutionThreshold'];
}
if (isset($GLOBALS['benchmarkPageCopyThreshold'])) {
$this->pageCopyThreshold = $GLOBALS['benchmarkPageCopyThreshold'];
}
if (isset($GLOBALS['benchmarkShowMemoryUsage'])) {
$this->showMemoryUsage = (bool) $GLOBALS['benchmarkShowMemoryUsage'];
}
if (isset($GLOBALS['benchmarkQueryLimit'])) {
$this->queryLimit = $GLOBALS['benchmarkQueryLimit'];
}
if (isset($GLOBALS['benchmarkQueryOffset'])) {
$this->queryOffset = $GLOBALS['benchmarkQueryOffset'];
}
if (isset($GLOBALS['benchmarkReuseDatasets'])) {
$this->reuseDatasets = $GLOBALS['benchmarkReuseDatasets'];
}
$this->queryParser = new QueryParser();
$this->benchmarkRunner = new BenchmarkRunner();
}
作者:ReachingOu
项目:SemanticMediaWik
protected function tearDown()
{
if ($this->deleteAfterState) {
UtilityFactory::getInstance()->newPageDeleter()->doDeletePoolOfPages($this->itemsMarkedForDeletion);
}
$this->restoreSettingsBeforeLocalChange();
parent::tearDown();
}
作者:hangy
项目:SemanticMediaWik
protected function setUp()
{
parent::setUp();
$this->apiFactory = new MwApiFactory();
$this->dataValueFactory = DataValueFactory::getInstance();
$this->serializerFactory = new SerializerFactory();
$this->semanticDataFactory = new SemanticDataFactory();
}
作者:WolfgangFah
项目:SemanticMediaWik
protected function tearDown()
{
$this->mwHooksHandler->restoreListedHooks();
$GLOBALS['wgEnableUploads'] = $this->wgEnableUploads;
$GLOBALS['wgFileExtensions'] = $this->wgFileExtensions;
$GLOBALS['wgVerifyMimeType'] = $this->wgVerifyMimeType;
parent::tearDown();
}
作者:jongfel
项目:SemanticMediaWik
public function tearDown()
{
$this->mwHooksHandler->restoreListedHooks();
if ($this->title !== null) {
$this->pageDeleter->deletePage($this->title);
}
parent::tearDown();
}
作者:jongfel
项目:SemanticMediaWik
public function tearDown()
{
$this->applicationFactory->clear();
$this->mwHooksHandler->restoreListedHooks();
$this->testEnvironment->flushPages(array($this->title));
$this->testEnvironment->tearDown();
parent::tearDown();
}
作者:whysass
项目:kmwik
protected function tearDown()
{
$pageDeleter = new PageDeleter();
foreach ($this->titles as $title) {
$pageDeleter->deletePage($title);
}
parent::tearDown();
}
作者:jongfel
项目:SemanticMediaWik
protected function tearDown()
{
if ($this->deletePagesOnTearDown) {
$this->testEnvironment->flushPages($this->itemsMarkedForDeletion);
}
$this->testEnvironment->tearDown();
parent::tearDown();
}
作者:WolfgangFah
项目:SemanticMediaWik
protected function setUp()
{
parent::setUp();
// Variable set using phpunit.xml
if (isset($GLOBALS['benchmarkShowMemoryUsage'])) {
$this->showMemoryUsage = $GLOBALS['benchmarkShowMemoryUsage'];
}
$this->benchmarkRunner = new BenchmarkRunner($this->showMemoryUsage);
}
作者:WolfgangFah
项目:SemanticMediaWik
protected function setUp()
{
parent::setUp();
// Variable set using phpunit.xml
if (isset($GLOBALS['benchmarkPageCopyThreshold'])) {
$this->pageCopyThreshold = $GLOBALS['benchmarkPageCopyThreshold'];
}
if (isset($GLOBALS['benchmarkShowMemoryUsage'])) {
$this->showMemoryUsage = $GLOBALS['benchmarkShowMemoryUsage'];
}
if (isset($GLOBALS['benchmarkReuseDatasets'])) {
$this->reuseDatasets = $GLOBALS['benchmarkReuseDatasets'];
}
$this->benchmarkRunner = new BenchmarkRunner($this->showMemoryUsage);
//$this->getStore()->getConnection( 'sparql' )->deleteAll();
}
作者:jongfel
项目:SemanticMediaWik
protected function setUp()
{
parent::setUp();
// Variable set using phpunit.xml
if (isset($GLOBALS['benchmarkPageCopyThreshold'])) {
$this->pageCopyThreshold = $GLOBALS['benchmarkPageCopyThreshold'];
}
if (isset($GLOBALS['benchmarkShowMemoryUsage'])) {
$this->showMemoryUsage = $GLOBALS['benchmarkShowMemoryUsage'];
}
if (isset($GLOBALS['benchmarkReuseDatasets'])) {
$this->reuseDatasets = $GLOBALS['benchmarkReuseDatasets'];
}
$this->benchmarkRunner = new BenchmarkRunner();
$this->runnerFactory = UtilityFactory::getInstance()->newRunnerFactory();
}
作者:whysass
项目:kmwik
protected function tearDown()
{
UtilityFactory::getInstance()->newPageDeleter()->doDeletePoolOfPages($this->subjects);
$GLOBALS['smwgNamespace'] = $this->smwgNamespace;
parent::tearDown();
}
作者:whysass
项目:kmwik
protected function setUp()
{
parent::setUp();
$this->pageCreator = UtilityFactory::getInstance()->newPageCreator();
$this->semanticDataValidator = UtilityFactory::getInstance()->newValidatorFactory()->newSemanticDataValidator();
}
作者:jongfel
项目:SemanticMediaWik
protected function tearDown()
{
UtilityFactory::getInstance()->newPageDeleter()->doDeletePoolOfPages($this->subjects);
unset($GLOBALS['wgHooks']['InterwikiLoadPrefix']);
parent::tearDown();
}
作者:jongfel
项目:SemanticMediaWik
protected function tearDown()
{
$this->testEnvironment->tearDown();
parent::tearDown();
}