Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ProphecyTrait.php

function ProphecyTrait::verifyProphecyDoubles

@postCondition

File

vendor/phpspec/prophecy-phpunit/src/ProphecyTrait.php, line 65

Class

ProphecyTrait
@mixin TestCase

Namespace

Prophecy\PhpUnit

Code

protected function verifyProphecyDoubles() : void {
    if ($this->prophet === null) {
        return;
    }
    try {
        $this->prophet
            ->checkPredictions();
    } catch (PredictionException $e) {
        throw new AssertionFailedError($e->getMessage());
    } finally {
        $this->countProphecyAssertions();
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal