You are here

public function CountryValidatorTest::testInvalidCountries in Plug 7

@dataProvider getInvalidCountries

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/CountryValidatorTest.php, line 82

Class

CountryValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testInvalidCountries($country) {
  $constraint = new Country(array(
    'message' => 'myMessage',
  ));
  $this->validator
    ->validate($country, $constraint);
  $this
    ->buildViolation('myMessage')
    ->setParameter('{{ value }}', '"' . $country . '"')
    ->assertRaised();
}