public function FileTest::provideValidSizes in Plug 7
Return value
array
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ FileTest.php, line 46
Class
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function provideValidSizes() {
return array(
array(
'500',
500,
false,
),
array(
12300,
12300,
false,
),
array(
'1ki',
1024,
true,
),
array(
'1KI',
1024,
true,
),
array(
'2k',
2000,
false,
),
array(
'2K',
2000,
false,
),
array(
'1mi',
1048576,
true,
),
array(
'1MI',
1048576,
true,
),
array(
'3m',
3000000,
false,
),
array(
'3M',
3000000,
false,
),
);
}