public function AcceptHeaderItemTest::testFromString

@dataProvider provideFromStringData

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/AcceptHeaderItemTest.php, line 21

Class

AcceptHeaderItemTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testFromString($string, $value, array $attributes) {
  $item = AcceptHeaderItem::fromString($string);
  $this
    ->assertEquals($value, $item
    ->getValue());
  $this
    ->assertEquals($attributes, $item
    ->getAttributes());
}