public function test_can_get_a_default_value_when_no_cookie_is_found_by_key() { $this->wrappedMock->shouldReceive('getCookieParams')->andReturn(['name' => 'params']); $this->assertEquals('default', $this->request->cookie('missing', 'default')); }
public function test_can_get_response_headers() { $this->wrappedMock->shouldReceive('getHeaders')->once()->andReturn(['header' => 'value']); $this->assertEquals(['header' => 'value'], $this->response->headers()); }