예제 #1
0
파일: CookieTest.php 프로젝트: nxpthx/FLOW3
 /**
  * @test
  */
 public function getValueReturnsTheSetValue()
 {
     $cookie = new Cookie('foo', 'bar');
     $this->assertEquals('bar', $cookie->getValue());
     $cookie = new Cookie('foo', 'bar');
     $cookie->setValue('baz');
     $this->assertEquals('baz', $cookie->getValue());
     $cookie = new Cookie('foo', TRUE);
     $this->assertSame(TRUE, $cookie->getValue());
     $uri = new Uri('http://localhost');
     $cookie = new Cookie('foo', $uri);
     $this->assertSame($uri, $cookie->getValue());
 }