You are here

protected function PHPUnit_Framework_TestCase::prophesize in Zircon Profile 8

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

@since Method available since Release 4.5.0

Parameters

string|null $classOrInterface:

Return value

\Prophecy\Prophecy\ObjectProphecy

Throws

\LogicException

File

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

Class

PHPUnit_Framework_TestCase
A TestCase defines the fixture to run multiple tests.

Code

protected function prophesize($classOrInterface = null) {
  return $this
    ->getProphet()
    ->prophesize($classOrInterface);
}