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

Breadcrumb

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

function ProphecyTrait::getProphet

@internal

File

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

Class

ProphecyTrait
@mixin TestCase

Namespace

Prophecy\PhpUnit

Code

private function getProphet() : Prophet {
    if ($this->prophet === null) {
        $this->prophet = new Prophet();
    }
    return $this->prophet;
}

API Navigation

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