You are here

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

FileTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testMaxSize($maxSize, $bytes, $binaryFormat) {
  $file = new File(array(
    'maxSize' => $maxSize,
  ));
  $this
    ->assertSame($bytes, $file->maxSize);
  $this
    ->assertSame($binaryFormat, $file->binaryFormat);
}