You are here

public function BlankValidatorTest::testInvalidValues in Plug 7

@dataProvider getInvalidValues

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/BlankValidatorTest.php, line 47

Class

BlankValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testInvalidValues($value, $valueAsString) {
  $constraint = new Blank(array(
    'message' => 'myMessage',
  ));
  $this->validator
    ->validate($value, $constraint);
  $this
    ->buildViolation('myMessage')
    ->setParameter('{{ value }}', $valueAsString)
    ->assertRaised();
}