You are here

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

Return value

array

File

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

Class

FileTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function provideValidSizes() {
  return array(
    array(
      '500',
      500,
      false,
    ),
    array(
      12300,
      12300,
      false,
    ),
    array(
      '1ki',
      1024,
      true,
    ),
    array(
      '1KI',
      1024,
      true,
    ),
    array(
      '2k',
      2000,
      false,
    ),
    array(
      '2K',
      2000,
      false,
    ),
    array(
      '1mi',
      1048576,
      true,
    ),
    array(
      '1MI',
      1048576,
      true,
    ),
    array(
      '3m',
      3000000,
      false,
    ),
    array(
      '3M',
      3000000,
      false,
    ),
  );
}