예제 #1
0
 /**
  * @dataProvider providerForInvalidCharset
  * @expectedException Respect\Validation\Exceptions\CharsetException
  */
 public function testInvalidCharsetShouldFailAndThrowCharsetException($charset, $input)
 {
     $validator = new Charset($charset);
     $this->assertFalse($validator->__invoke($input));
     $this->assertFalse($validator->assert($input));
 }