Definition at line 26 of file NotConstraintTest.php.
◆ setUp()
◆ testAccepts()
◆ testCheckFails()
NotTest::testCheckFails |
( |
| ) |
|
Definition at line 73 of file NotConstraintTest.php.
75 $this->expectException(UnexpectedValueException::class);
76 $this->not_true->check(null);
◆ testCheckSucceed()
NotTest::testCheckSucceed |
( |
| ) |
|
◆ testNoProblemWith()
NotTest::testNoProblemWith |
( |
| ) |
|
◆ testNotAccepts()
NotTest::testNotAccepts |
( |
| ) |
|
◆ testProblemWith()
NotTest::testProblemWith |
( |
| ) |
|
◆ testRestrictError()
NotTest::testRestrictError |
( |
| ) |
|
Definition at line 111 of file NotConstraintTest.php.
References $res.
113 $error = $this->df->error(
"error");
115 $res = $this->not_false->applyTo($error);
116 $this->assertSame($error,
$res);
◆ testRestrictNotOk()
NotTest::testRestrictNotOk |
( |
| ) |
|
Definition at line 103 of file NotConstraintTest.php.
References $res.
105 $not_ok = $this->df->ok(null);
107 $res = $this->not_true->applyTo($not_ok);
108 $this->assertFalse(
$res->isOk());
◆ testRestrictOk()
NotTest::testRestrictOk |
( |
| ) |
|
Definition at line 95 of file NotConstraintTest.php.
References $res.
97 $ok = $this->df->ok(null);
99 $res = $this->not_false->applyTo($ok);
100 $this->assertTrue(
$res->isOk());
◆ testWithProblemBuilder()
NotTest::testWithProblemBuilder |
( |
| ) |
|
Definition at line 119 of file NotConstraintTest.php.
121 $new_c = $this->not_true->withProblemBuilder(
static function ():
string {
122 return "This was a fault";
124 $this->assertEquals(
"This was a fault", $new_c->problemWith(null));
◆ $df
◆ $lng
◆ $not_false
◆ $not_true
◆ $refinery
Refinery NotTest::$refinery |
|
private |
The documentation for this class was generated from the following file: