TestCase
abstract class TestCase extends TestCase
| internal | This class is not covered by the backward compatibility promise |
Methods
static 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 an UnaryOperator.
__construct(Constraint $constraint, string $operator, int $precedence)
No description
string
operator()
No description
int
precedence()
No description
Details
at line 32
abstract static Constraint
createConstraint(mixed ...$args)
No description
at line 41
abstract static string
getConstraintClass()
Returns constraint's class name.
at line 51
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 93
final void
examineConstraintMatchSucceeds(array $args, mixed $actual)
No description
at line 107
final void
examineConstraintMatchFails(array $args, mixed $actual, string $message)
No description
at line 126
final void
examineNotConstraintMatchSucceeds(array $args, mixed $actual)
No description
at line 139
final void
examineNotConstraintMatchFails(array $args, mixed $actual, string $message)
No description
at line 158
final protected UnaryOperator
wrapWithUnaryOperator(Constraint $constraint, string $operator = 'noop', int $precedence = 1)
Returns $constraint wrapped with an UnaryOperator.
at line 164
__construct(Constraint $constraint, string $operator, int $precedence)
No description
at line 169
string
operator()
No description
at line 175
int
precedence()
No description