public function AcceptHeaderItemTest::testValue in Zircon Profile 8.0
Same name and namespace in other branches
- 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
Namespace
Symfony\Component\HttpFoundation\TestsCode
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());
}