public function FileTest::testInvalidValueForMaxSizeThrowsExceptionAfterInitialization in Zircon Profile 8
Same name and namespace in other branches
- 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
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function testInvalidValueForMaxSizeThrowsExceptionAfterInitialization($maxSize) {
$file = new File(array(
'maxSize' => 1000,
));
$file->maxSize = $maxSize;
}