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:
Fabien Potencier 2012-04-25 18:09:31 +02:00
commit 52e1fa97ee

View File

@ -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')));
}