Exemplo n.º 1
0
 protected function tearDown()
 {
     parent::tearDown();
     /** @var ObjectManagerInterface|\PHPUnit_Framework_MockObject_MockObject $objectManagerMock*/
     $objectManagerMock = $this->getMock('Magento\\Framework\\ObjectManagerInterface');
     \Magento\Framework\App\ObjectManager::setInstance($objectManagerMock);
 }
Exemplo n.º 2
0
 protected function tearDown()
 {
     $this->serializer = null;
     $this->nativeArrayGateway = null;
     $this->nativeObjectGateway = null;
     parent::tearDown();
 }
Exemplo n.º 3
0
 /**
  * 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();
 }
Exemplo n.º 5
0
 public function tearDown()
 {
     parent::tearDown();
     foreach (FakePaginatorModel::find() as $robot) {
         $robot->delete();
     }
 }
Exemplo n.º 6
0
 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();
 }
Exemplo n.º 8
0
 protected function tearDown()
 {
     unset($this->_xmlDeserializer);
     unset($this->_xmlParserMock);
     unset($this->_appStateMock);
     parent::tearDown();
 }
Exemplo n.º 9
0
 public function tearDown()
 {
     $this->jobQueue = null;
     $this->scheduler = null;
     $this->beanstalk = null;
     parent::tearDown();
 }
Exemplo n.º 10
0
 protected function tearDown()
 {
     if ($this->loader instanceof \Teknoo\States\Loader\LoaderInterface) {
         spl_autoload_unregister(array($this->loader, 'loadClass'));
     }
     parent::tearDown();
 }
Exemplo n.º 11
0
 public function tearDown()
 {
     if ($this->resource !== null) {
         fclose($this->resource);
     }
     parent::tearDown();
 }
Exemplo n.º 12
0
 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();
 }
Exemplo n.º 14
0
 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();
     }
 }
Exemplo n.º 16
0
 /**
  * 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();
 }
Exemplo n.º 19
0
 /**
  * Tear down
  */
 protected function tearDown()
 {
     $this->objectManager = null;
     $this->accountManagement = null;
     $this->securityManager = null;
     parent::tearDown();
 }
Exemplo n.º 20
0
 /**
  * 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();
 }
Exemplo n.º 22
0
 protected function tearDown()
 {
     parent::tearDown();
     while (ob_get_level() > $this->obLevel) {
         ob_end_clean();
     }
 }
Exemplo n.º 23
0
 /**
  * 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();
 }
Exemplo n.º 25
0
 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();
 }
Exemplo n.º 27
0
 protected function tearDown()
 {
     unset($this->_factory);
     unset($this->_apiFrontController);
     unset($this->_objectManager);
     parent::tearDown();
 }
Exemplo n.º 28
0
    /**
     * Cleans up the environment after running a test.
     */
    protected function tearDown()
    {
        unset($this->adapter);
        $this->ebsInstance = null;

        parent::tearDown();
    }
Exemplo n.º 29
0
 public function tearDown()
 {
     if (null !== $this->kernel) {
         $this->kernel->shutdown();
     }
     parent::tearDown();
 }
Exemplo n.º 30
0
 protected function tearDown()
 {
     if (file_exists('images/image1.jpg')) {
         unlink('images/image1.jpg');
     }
     parent::tearDown();
 }