◆ setUp()
| HasMinLengthConstraintTest::setUp |
( |
| ) |
|
|
protected |
◆ testAccepts1()
| HasMinLengthConstraintTest::testAccepts1 |
( |
| ) |
|
◆ testAccepts2()
| HasMinLengthConstraintTest::testAccepts2 |
( |
| ) |
|
◆ testCheckFails()
| HasMinLengthConstraintTest::testCheckFails |
( |
| ) |
|
Definition at line 68 of file HasMinLengthConstraintTest.php.
68 : void
69 {
70 $this->expectException(UnexpectedValueException::class);
71 $this->c->check("");
72 }
◆ testCheckSucceed()
| HasMinLengthConstraintTest::testCheckSucceed |
( |
| ) |
|
◆ testNoProblemWith()
| HasMinLengthConstraintTest::testNoProblemWith |
( |
| ) |
|
◆ testNotAccepts()
| HasMinLengthConstraintTest::testNotAccepts |
( |
| ) |
|
◆ testProblemWith()
| HasMinLengthConstraintTest::testProblemWith |
( |
| ) |
|
Definition at line 79 of file HasMinLengthConstraintTest.php.
79 : void
80 {
82 ->expects($this->once())
83 ->method("txt")
84 ->with("not_min_length")
85 ->willReturn("-%s-%s-");
86
87 $this->assertEquals("-3-10-", $this->c->problemWith("123"));
88 }
References ILIAS\Repository\lng().
◆ testRestrictError()
| HasMinLengthConstraintTest::testRestrictError |
( |
| ) |
|
◆ testRestrictNotOk()
| HasMinLengthConstraintTest::testRestrictNotOk |
( |
| ) |
|
◆ testRestrictOk()
| HasMinLengthConstraintTest::testRestrictOk |
( |
| ) |
|
◆ testWithProblemBuilder()
| HasMinLengthConstraintTest::testWithProblemBuilder |
( |
| ) |
|
Definition at line 114 of file HasMinLengthConstraintTest.php.
114 : void
115 {
116 $new_c = $this->c->withProblemBuilder(static function (): string {
117 return "This was a fault";
118 });
119 $this->assertEquals("This was a fault", $new_c->problemWith(""));
120 }
◆ $c
◆ $df
| DataFactory HasMinLengthConstraintTest::$df |
|
private |
◆ $lng
◆ $min_length
| int HasMinLengthConstraintTest::$min_length |
|
private |
The documentation for this class was generated from the following file: