You are here

public function FileTest::testBinaryFormat in Zircon Profile 8.0

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

@dataProvider provideFormats

Parameters

mixed $maxSize:

bool $guessedFormat:

bool $binaryFormat:

File

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

Class

FileTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

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