public function testGetCookie() { $_COOKIE['foo'] = 'bar'; $this->assertSame('bar', $this->_request->getCookie('foo')); $this->assertEquals('foo', $this->_request->getCookie('BAR', 'foo')); $this->assertEquals($_COOKIE, $this->_request->getCookie()); }