Exemplo n.º 1
0
 protected function assertPostConditions()
 {
     $this->addMockeryExpectationsToAssertionCount();
     $this->closeMockery();
     parent::assertPostConditions();
 }
Exemplo n.º 2
0
 /**
  * Announces the end of a test.
  *
  * @return void
  */
 protected function assertPostConditions()
 {
     parent::assertPostConditions();
     $this->endTest($this->getName());
 }
 /**
  * Check for unexpected errors after each test.
  *
  * @since 0.3.0
  */
 public function assertPostConditions()
 {
     parent::assertPostConditions();
     self::check_for_unexpected_errors();
     if (!empty(self::$debugs)) {
         var_dump(self::$debugs);
     }
 }
Exemplo n.º 4
0
 /**
  * {@inheritdoc}
  */
 protected function assertPostConditions()
 {
     // Execute registered Drupal shutdown functions prior to tearing down.
     // @see _drupal_shutdown_function()
     $callbacks =& drupal_register_shutdown_function();
     while ($callback = array_shift($callbacks)) {
         call_user_func_array($callback['callback'], $callback['arguments']);
     }
     // Shut down the kernel (if bootKernel() was called).
     // @see \Drupal\system\Tests\DrupalKernel\DrupalKernelTest
     if ($this->container) {
         $this->container->get('kernel')->shutdown();
     }
     // Fail in case any (new) shutdown functions exist.
     $this->assertCount(0, drupal_register_shutdown_function(), 'Unexpected Drupal shutdown callbacks exist after running shutdown functions.');
     parent::assertPostConditions();
 }
 /**
  * Assert post conditions.
  */
 protected function assertPostConditions()
 {
     $this->_failing = false;
     parent::assertPostConditions();
 }