public function CountryValidatorTest::testInvalidCountries in Plug 7
@dataProvider getInvalidCountries
File
- lib/Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ CountryValidatorTest.php, line 82 
Class
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function testInvalidCountries($country) {
  $constraint = new Country(array(
    'message' => 'myMessage',
  ));
  $this->validator
    ->validate($country, $constraint);
  $this
    ->buildViolation('myMessage')
    ->setParameter('{{ value }}', '"' . $country . '"')
    ->assertRaised();
}