public function FileValidatorTest::provideMaxSizeNotExceededTests in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ FileValidatorTest.php, line 188
Class
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function provideMaxSizeNotExceededTests() {
return array(
// limit in bytes
array(
1000,
1000,
),
array(
1000000,
1000000,
),
// limit in kB
array(
1000,
'1k',
),
array(
1000000,
'1000k',
),
// limit in MB
array(
1000000,
'1M',
),
// limit in KiB
array(
1024,
'1Ki',
),
array(
1048576,
'1024Ki',
),
// limit in MiB
array(
1048576,
'1Mi',
),
);
}