You are here

public function BinaryFileResponseTest::provideRanges in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/Tests/BinaryFileResponseTest.php \Symfony\Component\HttpFoundation\Tests\BinaryFileResponseTest::provideRanges()

File

vendor/symfony/http-foundation/Tests/BinaryFileResponseTest.php, line 83

Class

BinaryFileResponseTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function provideRanges() {
  return array(
    array(
      'bytes=1-4',
      1,
      4,
      'bytes 1-4/35',
    ),
    array(
      'bytes=-5',
      30,
      5,
      'bytes 30-34/35',
    ),
    array(
      'bytes=30-',
      30,
      5,
      'bytes 30-34/35',
    ),
    array(
      'bytes=30-30',
      30,
      1,
      'bytes 30-30/35',
    ),
    array(
      'bytes=30-34',
      30,
      5,
      'bytes 30-34/35',
    ),
  );
}