TestCase for the factory of constraints.
More...
◆ setUp()
ValidationFactoryTest::setUp |
( |
| ) |
|
|
protected |
◆ tearDown()
ValidationFactoryTest::tearDown |
( |
| ) |
|
|
protected |
◆ testCustom()
ValidationFactoryTest::testCustom |
( |
| ) |
|
Definition at line 43 of file ValidationFactoryTest.php.
45 $custom = $this->f->custom(
function ($value) {
46 return "This was fault";
48 $this->assertInstanceOf(Validation\Constraint::class, $custom);
◆ testGreaterThan()
ValidationFactoryTest::testGreaterThan |
( |
| ) |
|
Definition at line 31 of file ValidationFactoryTest.php.
33 $gt = $this->f->greaterThan(5);
34 $this->assertInstanceOf(Validation\Constraint::class, $gt);
◆ testIsInt()
ValidationFactoryTest::testIsInt |
( |
| ) |
|
Definition at line 25 of file ValidationFactoryTest.php.
27 $is_int = $this->f->isInt();
28 $this->assertInstanceOf(Validation\Constraint::class, $is_int);
◆ testLessThan()
ValidationFactoryTest::testLessThan |
( |
| ) |
|
Definition at line 37 of file ValidationFactoryTest.php.
39 $lt = $this->f->lessThan(5);
40 $this->assertInstanceOf(Validation\Constraint::class, $lt);
◆ testNot()
ValidationFactoryTest::testNot |
( |
| ) |
|
Definition at line 73 of file ValidationFactoryTest.php.
75 $constraint = $this->f->greaterThan(5);
76 $not = $this->f->not($constraint);
77 $this->assertInstanceOf(Validation\Constraint::class, $not);
◆ testParallel()
ValidationFactoryTest::testParallel |
( |
| ) |
|
Definition at line 62 of file ValidationFactoryTest.php.
References array.
65 $this->f->greaterThan(5),
66 $this->f->lessThan(15)
69 $parallel = $this->f->parallel($constraints);
70 $this->assertInstanceOf(Validation\Constraint::class, $parallel);
Create styles array
The data for the language used.
◆ testSequential()
ValidationFactoryTest::testSequential |
( |
| ) |
|
Definition at line 51 of file ValidationFactoryTest.php.
References array.
54 $this->f->greaterThan(5),
55 $this->f->lessThan(15)
58 $sequential = $this->f->sequential($constraints);
59 $this->assertInstanceOf(Validation\Constraint::class, $sequential);
Create styles array
The data for the language used.
The documentation for this class was generated from the following file: