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 33
abstract static Constraint
createConstraint(mixed ...$args)
No description
at line 42
abstract static string
getConstraintClass()
Returns constraint's class name.
at line 52
final Constraint
examineCreateConstraint(array $args)
No description
at line 73
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 95
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 128
final void
examineNotConstraintMatchSucceeds(array $args, mixed $actual)
No description
at line 141
final void
examineNotConstraintMatchFails(array $args, mixed $actual, string $message)
No description
at line 161
final protected UnaryOperator
wrapWithUnaryOperator(Constraint $constraint, string $operator = 'noop', int $precedence = 1)
Returns $constraint wrapped with an UnaryOperator.
at line 167
__construct(Constraint $constraint, string $operator, int $precedence)
No description
at line 172
string
operator()
No description
at line 177
int
precedence()
No description