protected function tearDown() { parent::tearDown(); /** @var ObjectManagerInterface|\PHPUnit_Framework_MockObject_MockObject $objectManagerMock*/ $objectManagerMock = $this->getMock('Magento\\Framework\\ObjectManagerInterface'); \Magento\Framework\App\ObjectManager::setInstance($objectManagerMock); }
protected function tearDown() { $this->serializer = null; $this->nativeArrayGateway = null; $this->nativeObjectGateway = null; parent::tearDown(); }
/** * Tear down process run after tests * @return void */ protected function tearDown() { parent::tearDown(); if ($this->entityManager != null) { $this->entityManager->getConnection()->close(); } }
protected function tearDown() { $this->generator = null; $this->wordlist = null; $this->roller = null; parent::tearDown(); }
public function tearDown() { parent::tearDown(); foreach (FakePaginatorModel::find() as $robot) { $robot->delete(); } }
protected function tearDown() { unset($this->_coreAuthorization); unset($this->_helperMock); unset($this->_webapiAuthorization); parent::tearDown(); }
protected function tearDown() { foreach ($this->getTemplateNames() as $template) { $config = $this->_includeConfig($template); $file = $config['dist-installer-params']['file']; switch ($template) { case 'overwrite': $oldFile = $file . '.old'; @copy($oldFile, $file); @unlink($oldFile); break; case 'createdir': @unlink($file); @rmdir(dirname($file)); break; case 'no-overwrite': break; default: @unlink($file); break; } } foreach ($this->environmentBackup as $var => $value) { if (false === $value) { putenv($var); } else { putenv($var . '=' . $value); } } parent::tearDown(); }
protected function tearDown() { unset($this->_xmlDeserializer); unset($this->_xmlParserMock); unset($this->_appStateMock); parent::tearDown(); }
public function tearDown() { $this->jobQueue = null; $this->scheduler = null; $this->beanstalk = null; parent::tearDown(); }
protected function tearDown() { if ($this->loader instanceof \Teknoo\States\Loader\LoaderInterface) { spl_autoload_unregister(array($this->loader, 'loadClass')); } parent::tearDown(); }
public function tearDown() { if ($this->resource !== null) { fclose($this->resource); } parent::tearDown(); }
protected function tearDown() { unset($this->_oauthServerMock); unset($this->_restAuthentication); unset($this->_roleLocatorMock); parent::tearDown(); }
/** * Overrides the parent tearDown method. * * @return void * * @see PHPUnit_Framework_TestCase::tearDown() * @since 3.6 */ protected function tearDown() { unset($this->object); unset($this->safeObject); unset($this->safeObjectArrayTest); parent::tearDown(); }
public function tearDown() { parent::tearDown(); if ($this->cwd) { $this->filesystem->remove($this->cwd); } }
function tearDown() { parent::tearDown(); if (defined('IS_WPCOM') && IS_WPCOM) { restore_current_blog(); } }
/** * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. * * @return void */ protected function tearDown() { JFolder::delete(JPATH_TESTS . '/tmp/language'); unset($this->object); unset($this->inspector); parent::tearDown(); }
protected function tearDown() { parent::tearDown(); $this->_instance->reset(); $this->_instance = null; @unlink($this->_file); }
protected function tearDown() { if ($this->prophet) { $this->prophet->checkPredictions(); } parent::tearDown(); }
/** * Tear down */ protected function tearDown() { $this->objectManager = null; $this->accountManagement = null; $this->securityManager = null; parent::tearDown(); }
/** * Overrides the parent tearDown method. * * @return void * * @see PHPUnit_Framework_TestCase::tearDown() * @since 11.1 */ protected function tearDown() { // Clear out the log instance. $log = new JLogInspector(); JLog::setInstance($log); parent::tearDown(); }
protected function tearDown() { unset($this->_errorProcessor); unset($this->encoderMock); unset($this->_appStateMock); parent::tearDown(); }
protected function tearDown() { parent::tearDown(); while (ob_get_level() > $this->obLevel) { ob_end_clean(); } }
/** * This will run at the end of every test method */ public function tearDown() { // Parent teardown parent::tearDown(); // Unset GoogleApisHelper class $this->fileHelper = null; }
/** * Overrides the parent tearDown method. * * @return void * * @see PHPUnit_Framework_TestCase::tearDown() * @since 3.6 */ protected function tearDown() { unset($this->options); unset($this->client); unset($this->object); parent::tearDown(); }
public function tearDown() { parent::tearDown(); $this->app['storage']->close(); $fs = new Filesystem(); $fs->remove($this->baseDir); }
/** * Cleans up the environment after running a test. */ protected function tearDown() { $this->UrlGenerator = null; $this->context = null; $this->gadget = null; parent::tearDown(); }
protected function tearDown() { unset($this->_factory); unset($this->_apiFrontController); unset($this->_objectManager); parent::tearDown(); }
/** * Cleans up the environment after running a test. */ protected function tearDown() { unset($this->adapter); $this->ebsInstance = null; parent::tearDown(); }
public function tearDown() { if (null !== $this->kernel) { $this->kernel->shutdown(); } parent::tearDown(); }
protected function tearDown() { if (file_exists('images/image1.jpg')) { unlink('images/image1.jpg'); } parent::tearDown(); }