You are here

private function PHPUnit_Framework_TestCase::getProphet in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/TestCase.php \PHPUnit_Framework_TestCase::getProphet()

@since Method available since Release 4.5.0

Return value

Prophecy\Prophet

File

vendor/phpunit/phpunit/src/Framework/TestCase.php, line 2086

Class

PHPUnit_Framework_TestCase
A TestCase defines the fixture to run multiple tests.

Code

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