class Expect

Expectations for more complex assertions formulation.

Methods

static Expect
__callStatic(string $method, array $args)

No description

static Expect
that(callable $constraint)

No description

__call(string $method, array $args)

No description

and(callable $constraint)

No description

void
__invoke($actual)

Checks the expectations.

string
dump()

No description

static self
same(mixed $expected)

No description

static self
notSame(mixed $expected)

No description

static self
equal(mixed $expected)

No description

static self
notEqual(mixed $expected)

No description

static self
contains(mixed $needle)

No description

static self
notContains(mixed $needle)

No description

static self
true()

No description

static self
false()

No description

static self
null()

No description

static self
nan()

No description

static self
truthy()

No description

static self
falsey()

No description

static self
count(int $count)

No description

static self
type(string|object $type)

No description

static self
match(string $pattern)

No description

static self
matchFile(string $file)

No description

self
andSame(mixed $expected)

No description

self
andNotSame(mixed $expected)

No description

self
andEqual(mixed $expected)

No description

self
andNotEqual(mixed $expected)

No description

self
andContains(mixed $needle)

No description

self
andNotContains(mixed $needle)

No description

self
andTrue()

No description

self
andFalse()

No description

self
andNull()

No description

self
andNan()

No description

self
andTruthy()

No description

self
andFalsey()

No description

self
andCount(int $count)

No description

self
andType(string|object $type)

No description

self
andMatch(string $pattern)

No description

self
andMatchFile(string $file)

No description

Details

at line 56
static Expect __callStatic(string $method, array $args)

No description

Parameters

string $method
array $args

Return Value

Expect

at line 64
static Expect that(callable $constraint)

No description

Parameters

callable $constraint

Return Value

Expect

at line 70
Expect __call(string $method, array $args)

No description

Parameters

string $method
array $args

Return Value

Expect

at line 80
Expect and(callable $constraint)

No description

Parameters

callable $constraint

Return Value

Expect

at line 90
void __invoke($actual)

Checks the expectations.

Parameters

$actual

Return Value

void

at line 105
string dump()

No description

Return Value

string

at line 50
static self same(mixed $expected)

No description

Parameters

mixed $expected

Return Value

self

at line 50
static self notSame(mixed $expected)

No description

Parameters

mixed $expected

Return Value

self

at line 50
static self equal(mixed $expected)

No description

Parameters

mixed $expected

Return Value

self

at line 50
static self notEqual(mixed $expected)

No description

Parameters

mixed $expected

Return Value

self

at line 50
static self contains(mixed $needle)

No description

Parameters

mixed $needle

Return Value

self

at line 50
static self notContains(mixed $needle)

No description

Parameters

mixed $needle

Return Value

self

at line 50
static self true()

No description

Return Value

self

at line 50
static self false()

No description

Return Value

self

at line 50
static self null()

No description

Return Value

self

at line 50
static self nan()

No description

Return Value

self

at line 50
static self truthy()

No description

Return Value

self

at line 50
static self falsey()

No description

Return Value

self

at line 50
static self count(int $count)

No description

Parameters

int $count

Return Value

self

at line 50
static self type(string|object $type)

No description

Parameters

string|object $type

Return Value

self

at line 50
static self match(string $pattern)

No description

Parameters

string $pattern

Return Value

self

at line 50
static self matchFile(string $file)

No description

Parameters

string $file

Return Value

self

at line 50
self andSame(mixed $expected)

No description

Parameters

mixed $expected

Return Value

self

at line 50
self andNotSame(mixed $expected)

No description

Parameters

mixed $expected

Return Value

self

at line 50
self andEqual(mixed $expected)

No description

Parameters

mixed $expected

Return Value

self

at line 50
self andNotEqual(mixed $expected)

No description

Parameters

mixed $expected

Return Value

self

at line 50
self andContains(mixed $needle)

No description

Parameters

mixed $needle

Return Value

self

at line 50
self andNotContains(mixed $needle)

No description

Parameters

mixed $needle

Return Value

self

at line 50
self andTrue()

No description

Return Value

self

at line 50
self andFalse()

No description

Return Value

self

at line 50
self andNull()

No description

Return Value

self

at line 50
self andNan()

No description

Return Value

self

at line 50
self andTruthy()

No description

Return Value

self

at line 50
self andFalsey()

No description

Return Value

self

at line 50
self andCount(int $count)

No description

Parameters

int $count

Return Value

self

at line 50
self andType(string|object $type)

No description

Parameters

string|object $type

Return Value

self

at line 50
self andMatch(string $pattern)

No description

Parameters

string $pattern

Return Value

self

at line 50
self andMatchFile(string $file)

No description

Parameters

string $file

Return Value

self