TestCase
abstract class TestCase extends TestCase
internal | This class is not covered by the backward compatibility promise |
Methods
Constraint
createConstraint(mixed ...$args)
No description
static string
getConstraintClass()
Returns constraint's class name.
Constraint
examineCreateConstraint(array $args)
No description
void
examineConstraintUnaryOperatorFailure(array $args, mixed $actual, string $message)
Tests whether the constraint throws expected exception with expected message when wrapped with an unary operator.
void
examineConstraintMatchSucceeds(array $args, mixed $actual)
No description
void
examineConstraintMatchFails(array $args, mixed $actual, string $message)
No description
void
examineNotConstraintMatchSucceeds(array $args, mixed $actual)
No description
void
examineNotConstraintMatchFails(array $args, mixed $actual, string $message)
No description
UnaryOperator
wrapWithUnaryOperator(Constraint $constraint, string $operator = 'noop', int $precedence = 1)
Returns $constraint wrapped with UnaryOperator mock.
Details
at line 29
abstract Constraint
createConstraint(mixed ...$args)
No description
at line 38
abstract static string
getConstraintClass()
Returns constraint's class name.
at line 49
final Constraint
examineCreateConstraint(array $args)
No description
at line 71
final void
examineConstraintUnaryOperatorFailure(array $args, mixed $actual, string $message)
Tests whether the constraint throws expected exception with expected message when wrapped with an unary operator.
at line 94
final void
examineConstraintMatchSucceeds(array $args, mixed $actual)
No description
at line 109
final void
examineConstraintMatchFails(array $args, mixed $actual, string $message)
No description
at line 129
final void
examineNotConstraintMatchSucceeds(array $args, mixed $actual)
No description
at line 143
final void
examineNotConstraintMatchFails(array $args, mixed $actual, string $message)
No description
at line 163
final protected UnaryOperator
wrapWithUnaryOperator(Constraint $constraint, string $operator = 'noop', int $precedence = 1)
Returns $constraint wrapped with UnaryOperator mock.