/** * Ensure that the getCookie() method returns the value of the cookie set */ public function testGetCookie() { // Will return the value as mocked above $this->assertEquals(self::COOKIE_VALUE, $this->request->getCookie('PHPSESSID')); // Will return null if the value isnt set $this->assertNull($this->request->getCookie('nonexistent_cookie')); }