protected function PHPUnit_Framework_TestCase::verifyMockObjects

Verifies the mock object expectations.

@since Method available since Release 3.5.0

1 call to PHPUnit_Framework_TestCase::verifyMockObjects()
PHPUnit_Framework_TestCase::runBare in drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php
Runs the bare test sequence.

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php, line 1047

Class

PHPUnit_Framework_TestCase
A TestCase defines the fixture to run multiple tests.

Code

protected function verifyMockObjects() {
  foreach ($this->mockObjects as $mockObject) {
    if ($mockObject
      ->__phpunit_hasMatchers()) {
      $this->numAssertions++;
    }
    $mockObject
      ->__phpunit_verify();
    $mockObject
      ->__phpunit_cleanup();
  }
}