You are here

public function AcceptHeaderItemTest::testValue in Zircon Profile 8.0

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

File

vendor/symfony/http-foundation/Tests/AcceptHeaderItemTest.php, line 73

Class

AcceptHeaderItemTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testValue() {
  $item = new AcceptHeaderItem('value', array());
  $this
    ->assertEquals('value', $item
    ->getValue());
  $item
    ->setValue('new value');
  $this
    ->assertEquals('new value', $item
    ->getValue());
  $item
    ->setValue(1);
  $this
    ->assertEquals('1', $item
    ->getValue());
}