merged branch willdurand/validator-assertion (PR #4110)
Commits
-------
9328b28
[Validator] Added missing assertion
Discussion
----------
[Validator] Added missing assertion
There was no assertion before.
This commit is contained in:
commit
52e1fa97ee
@ -52,6 +52,9 @@ class TypeValidatorTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
public function testEmptyIsInvalidIfNoString()
|
||||
{
|
||||
$this->context->expects($this->once())
|
||||
->method('addViolation');
|
||||
|
||||
$this->validator->validate('', new Type(array('type' => 'integer')));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user