public function TypeValidatorTest::testEmptyIsInvalidIfNoString

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Constraints/TypeValidatorTest.php, line 53

Class

TypeValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testEmptyIsInvalidIfNoString() {
  $this->context
    ->expects($this
    ->once())
    ->method('addViolation');
  $this->validator
    ->validate('', new Type(array(
    'type' => 'integer',
  )));
}