You are here

public function AcceptHeaderItemTest::testFromString in Zircon Profile 8

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

@dataProvider provideFromStringData

File

vendor/symfony/http-foundation/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());
}