You are here

public function FileTest::testMaxSize in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Tests/Constraints/FileTest.php \Symfony\Component\Validator\Tests\Constraints\FileTest::testMaxSize()

@dataProvider provideValidSizes

Parameters

mixed $maxSize:

int $bytes:

bool $binaryFormat:

File

vendor/symfony/validator/Tests/Constraints/FileTest.php, line 25

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);
}