Documentation

Prophet
in package

Prophet creates prophecies.

Tags
author

Konstantin Kudryashov ever.zet@gmail.com

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

Methods

checkPredictions()

Checks all predictions defined by prophecies of this Prophet.

public checkPredictions() : mixed
Tags
throws
AggregateException

If any prediction fails

Return values
mixed

getDoubler()

Returns Doubler instance assigned to this Prophet.

public getDoubler() : Doubler
Return values
Doubler

prophesize()

Creates new object prophecy.

public prophesize([null|string $classOrInterface = null ]) : ObjectProphecy
Parameters
$classOrInterface : null|string = null

Class or interface name

Return values
ObjectProphecy

Search results