You are here

public function FileTest::testMaxSizeCanBeSetAfterInitialization 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::testMaxSizeCanBeSetAfterInitialization()

@dataProvider provideValidSizes

Parameters

int|string $maxSize:

int $bytes:

string $binaryFormat:

File

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

Class

FileTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

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