public function FileTest::testMaxSize in Plug 7
@dataProvider provideValidSizes
Parameters
mixed $maxSize:
int bytes:
bool $bytes:
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ FileTest.php, line 24
Class
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function testMaxSize($maxSize, $bytes, $binaryFormat) {
$file = new File(array(
'maxSize' => $maxSize,
));
$this
->assertSame($bytes, $file->maxSize);
$this
->assertSame($binaryFormat, $file->binaryFormat);
}