You are here

public function BinaryFileResponseTest::provideFullFileRanges 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::provideFullFileRanges()

File

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

Class

BinaryFileResponseTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function provideFullFileRanges() {
  return array(
    array(
      'bytes=0-',
    ),
    array(
      'bytes=0-34',
    ),
    array(
      'bytes=-35',
    ),
    // Syntactical invalid range-request should also return the full resource
    array(
      'bytes=20-10',
    ),
    array(
      'bytes=50-40',
    ),
  );
}