public function FileValidatorTest::testValidUploadedfile

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Constraints/FileValidatorTest.php, line 80

Class

FileValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testValidUploadedfile() {
  $this->context
    ->expects($this
    ->never())
    ->method('addViolation');
  $file = new UploadedFile($this->path, 'originalName', null, null, null, true);
  $this->validator
    ->validate($file, new File());
}