You are here

public function AcceptHeaderTest::provideSortingData in Zircon Profile 8.0

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

File

vendor/symfony/http-foundation/Tests/AcceptHeaderTest.php, line 94

Class

AcceptHeaderTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function provideSortingData() {
  return array(
    'quality has priority' => array(
      '*;q=0.3,ISO-8859-1,utf-8;q=0.7',
      array(
        'ISO-8859-1',
        'utf-8',
        '*',
      ),
    ),
    'order matters when q is equal' => array(
      '*;q=0.3,ISO-8859-1;q=0.7,utf-8;q=0.7',
      array(
        'ISO-8859-1',
        'utf-8',
        '*',
      ),
    ),
    'order matters when q is equal2' => array(
      '*;q=0.3,utf-8;q=0.7,ISO-8859-1;q=0.7',
      array(
        'utf-8',
        'ISO-8859-1',
        '*',
      ),
    ),
  );
}