You are here

public function CookieTest::testGetValue in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/http-foundation/Tests/CookieTest.php \Symfony\Component\HttpFoundation\Tests\CookieTest::testGetValue()
  2. 8 vendor/symfony/browser-kit/Tests/CookieTest.php \Symfony\Component\BrowserKit\Tests\CookieTest::testGetValue()
Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Tests/CookieTest.php \Symfony\Component\HttpFoundation\Tests\CookieTest::testGetValue()

@covers Symfony\Component\HttpFoundation\Cookie::getValue

File

vendor/symfony/http-foundation/Tests/CookieTest.php, line 72

Class

CookieTest
CookieTest.

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testGetValue() {
  $value = 'MyValue';
  $cookie = new Cookie('MyCookie', $value);
  $this
    ->assertSame($value, $cookie
    ->getValue(), '->getValue() returns the proper value');
}