You are here

public function FileTest::testInvalidValueForMaxSizeThrowsExceptionAfterInitialization in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Tests/Constraints/FileTest.php \Symfony\Component\Validator\Tests\Constraints\FileTest::testInvalidValueForMaxSizeThrowsExceptionAfterInitialization()

@dataProvider provideInvalidSizes @expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException

Parameters

int|string $maxSize:

File

vendor/symfony/validator/Tests/Constraints/FileTest.php, line 55

Class

FileTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testInvalidValueForMaxSizeThrowsExceptionAfterInitialization($maxSize) {
  $file = new File(array(
    'maxSize' => 1000,
  ));
  $file->maxSize = $maxSize;
}