abstract class AbstractPropertiesConstraintTestCase extends AbstractRecursiveConstraintTestCase

internal  This class is not covered by the backward compatibility promise
 

Methods

static Constraint
createConstraint(array $ctorArgs)

Creates constraint's instance.

static iterable
static iterable
static iterable
static iterable
void
testConstraintUnaryOperatorFailure(array $ctorArgs, mixed $actual, string $message)

No description

void
testConstraintEvaluationSucceeds(array $ctorArgs, mixed $actual)

No description

void
testConstraintEvaluationFails(array $ctorArgs, mixed $actual, string $message)

No description

void
testNotConstraintEvaluationSucceeds(array $ctorArgs, mixed $actual)

No description

void
testNotConstraintEvaluationFails(array $ctorArgs, mixed $actual, string $message)

No description

UnaryOperator
wrapWithUnaryOperator(Constraint $constraint, string $operator = 'noop', int $precedence = 1)

Returns $constraint wrapped with an UnaryOperator.

__construct(Constraint $constraint, string $operator, int $precedence)

No description

string
operator()

No description

int
precedence()

No description

static string
complement()

No description

static string
message(string $exported, bool $negative = false)

Assembles expected failure message out of pieces.

static string
predicate(string $exported, bool $negative = false)

Assembles a predicate which is a part of failure message.

static iterable
provArrayWithNonStringKeys()

No description

void
testCreateWithNonStringKeys(array $array, int $count)

No description

Details

abstract static Constraint createConstraint(array $ctorArgs)

Creates constraint's instance.

Parameters

array $ctorArgs

Return Value

Constraint

final static iterable provConstraintUnaryOperatorFailure()

No description

Return Value

iterable

abstract static iterable provConstraintEvaluationSucceeds()

No description

Return Value

iterable

abstract static iterable provConstraintEvaluationFails()

No description

Return Value

iterable

abstract static iterable provNotConstraintEvaluationSucceeds()

No description

Return Value

iterable

abstract static iterable provNotConstraintEvaluationFails()

No description

Return Value

iterable

final void testConstraintUnaryOperatorFailure(array $ctorArgs, mixed $actual, string $message)

No description

Parameters

array $ctorArgs
mixed $actual
string $message

Return Value

void

final void testConstraintEvaluationSucceeds(array $ctorArgs, mixed $actual)

No description

Parameters

array $ctorArgs

arguments passed to createConstraint()

mixed $actual

actual value

Return Value

void

final void testConstraintEvaluationFails(array $ctorArgs, mixed $actual, string $message)

No description

Parameters

array $ctorArgs

arguments passed to createConstraint()

mixed $actual
string $message

Return Value

void

final void testNotConstraintEvaluationSucceeds(array $ctorArgs, mixed $actual)

No description

Parameters

array $ctorArgs
mixed $actual

Return Value

void

final void testNotConstraintEvaluationFails(array $ctorArgs, mixed $actual, string $message)

No description

Parameters

array $ctorArgs
mixed $actual
string $message

Return Value

void

final protected UnaryOperator wrapWithUnaryOperator(Constraint $constraint, string $operator = 'noop', int $precedence = 1)

Returns $constraint wrapped with an UnaryOperator.

Parameters

Constraint $constraint
string $operator
int $precedence

Return Value

UnaryOperator

Exceptions

Exception
RuntimeException
ReflectionException

__construct(Constraint $constraint, string $operator, int $precedence)

No description

Parameters

Constraint $constraint
string $operator
int $precedence

string operator()

No description

Return Value

string

int precedence()

No description

Return Value

int

abstract static string complement()

No description

Return Value

string

final static protected string message(string $exported, bool $negative = false)

Assembles expected failure message out of pieces.

Parameters

string $exported

A noun representing the actual value, such as "123" or "array" or "object stdClass"

bool $negative

indicates whether the generated message is for the tested constraint (false) or a constraint negated with LogicalNot (true)

Return Value

string

final static protected string predicate(string $exported, bool $negative = false)

Assembles a predicate which is a part of failure message.

Parameters

string $exported

A noun representing the actual value, such as "123" or "array" or "object stdClass"

bool $negative

indicates whether the generated predicate is for the constraint under test (false) or a constraint negated with LogicalNot (true)

Return Value

string

at line 37
static iterable provArrayWithNonStringKeys()

No description

Return Value

iterable

at line 66
final void testCreateWithNonStringKeys(array $array, int $count)

No description

Parameters

array $array
int $count

Return Value

void