You are here

public function FileTest::testBinaryFormat in Plug 7

@dataProvider provideFormats

Parameters

mixed $maxSize:

bool $guessedFormat:

bool $binaryFormat:

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/FileTest.php, line 83

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