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

Breadcrumb

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

function ProphecyTrait::tearDownProphecy

@after

File

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

Class

ProphecyTrait
@mixin TestCase

Namespace

Prophecy\PhpUnit

Code

protected function tearDownProphecy() : void {
    if (null !== $this->prophet && !$this->prophecyAssertionsCounted) {
        // Some Prophecy assertions may have been done in tests themselves even when a failure happened before checking mock objects.
        $this->countProphecyAssertions();
    }
    $this->prophet = null;
}

API Navigation

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