Prophet
in package
Prophet creates prophecies.
Tags
Table of Contents
- $doubler : mixed
- $prophecies : array<string|int, ObjectProphecy>
- $revealer : mixed
- $util : mixed
- __construct() : mixed
- Initializes Prophet.
- checkPredictions() : mixed
- Checks all predictions defined by prophecies of this Prophet.
- getDoubler() : Doubler
- Returns Doubler instance assigned to this Prophet.
- getProphecies() : array<string|int, ObjectProphecy>
- Returns all created object prophecies.
- prophesize() : ObjectProphecy
- Creates new object prophecy.
Properties
$doubler
private
mixed
$doubler
$prophecies
private
array<string|int, ObjectProphecy>
$prophecies
= array()
$revealer
private
mixed
$revealer
$util
private
mixed
$util
Methods
__construct()
Initializes Prophet.
public
__construct([null|Doubler $doubler = null ][, null|RevealerInterface $revealer = null ][, null|StringUtil $util = null ]) : mixed
Parameters
- $doubler : null|Doubler = null
- $revealer : null|RevealerInterface = null
- $util : null|StringUtil = null
Return values
mixed —checkPredictions()
Checks all predictions defined by prophecies of this Prophet.
public
checkPredictions() : mixed
Tags
Return values
mixed —getDoubler()
Returns Doubler instance assigned to this Prophet.
public
getDoubler() : Doubler
Return values
Doubler —getProphecies()
Returns all created object prophecies.
public
getProphecies() : array<string|int, ObjectProphecy>
Return values
array<string|int, ObjectProphecy> —prophesize()
Creates new object prophecy.
public
prophesize([null|string $classOrInterface = null ]) : ObjectProphecy
Parameters
- $classOrInterface : null|string = null
-
Class or interface name