tests/unit/ArrayValidatorTest.php 1 location
|
@@ 19-26 (lines=8) @@
|
| 16 |
|
$this->assertEquals('.', $validator->getSeparator()); |
| 17 |
|
} |
| 18 |
|
|
| 19 |
|
public function testSetAllowUnspecified() |
| 20 |
|
{ |
| 21 |
|
$validator = new ArrayValidator(); |
| 22 |
|
|
| 23 |
|
$this->assertTrue($validator->isAllowUnspecified()); |
| 24 |
|
$this->assertSame($validator, $validator->setAllowUnspecified(false)); |
| 25 |
|
$this->assertFalse($validator->isAllowUnspecified()); |
| 26 |
|
} |
| 27 |
|
|
| 28 |
|
public function testSetSeparator() |
| 29 |
|
{ |
tests/unit/ObjectValidatorTest.php 1 location
|
@@ 19-26 (lines=8) @@
|
| 16 |
|
$this->assertEquals('->', $validator->getSeparator()); |
| 17 |
|
} |
| 18 |
|
|
| 19 |
|
public function testSetAllowUnspecified() |
| 20 |
|
{ |
| 21 |
|
$validator = new ObjectValidator(); |
| 22 |
|
|
| 23 |
|
$this->assertTrue($validator->isAllowUnspecified()); |
| 24 |
|
$this->assertSame($validator, $validator->setAllowUnspecified(false)); |
| 25 |
|
$this->assertFalse($validator->isAllowUnspecified()); |
| 26 |
|
} |
| 27 |
|
|
| 28 |
|
public function testSetSeparator() |
| 29 |
|
{ |