Expanded class hierarchy of FileValidatorPathTest
class FileValidatorPathTest extends FileValidatorTest {
protected function getFile($filename) {
return $filename;
}
public function testFileNotFound() {
$constraint = new File(array(
'notFoundMessage' => 'myMessage',
));
$this->context
->expects($this
->once())
->method('addViolation')
->with('myMessage', array(
'{{ file }}' => 'foobar',
));
$this->validator
->validate('foobar', $constraint);
}
}