19 $this->outer->setMethod(
'FOO');
20 $this->assertEquals(
'FOO', $this->inner->getMethod());
21 $this->assertEquals(
'FOO', $this->outer->getMethod());
27 $this->outer->setUrl(
'/foo');
28 $this->assertEquals(
'/foo', $this->inner->getUrl());
29 $this->assertEquals(
'/foo', $this->outer->getUrl());
35 $this->outer->setAbsoluteUrl(
'http://example.org/foo');
36 $this->assertEquals(
'http://example.org/foo', $this->inner->getAbsoluteUrl());
37 $this->assertEquals(
'http://example.org/foo', $this->outer->getAbsoluteUrl());
43 $this->outer->setBaseUrl(
'/foo');
44 $this->assertEquals(
'/foo', $this->inner->getBaseUrl());
45 $this->assertEquals(
'/foo', $this->outer->getBaseUrl());
51 $this->outer->setBaseUrl(
'/foo');
52 $this->outer->setUrl(
'/foo/bar');
53 $this->assertEquals(
'bar', $this->inner->getPath());
54 $this->assertEquals(
'bar', $this->outer->getPath());
60 $this->outer->setUrl(
'/foo?a=b&c=d&e');
67 $this->assertEquals($expected, $this->inner->getQueryParameters());
68 $this->assertEquals($expected, $this->outer->getQueryParameters());
81 $this->assertEquals(
$postData, $this->inner->getPostData());
82 $this->assertEquals(
$postData, $this->outer->getPostData());
93 $this->outer->setRawServerData($serverData);
94 $this->assertEquals(
'On', $this->inner->getRawServerValue(
'HTTPS'));
95 $this->assertEquals(
'On', $this->outer->getRawServerValue(
'HTTPS'));
97 $this->assertNull($this->inner->getRawServerValue(
'FOO'));
98 $this->assertNull($this->outer->getRawServerValue(
'FOO'));
103 $this->inner->setMethod(
'POST');
104 $this->inner->setUrl(
'/foo/bar/');
105 $this->inner->setBody(
'foo');
106 $this->inner->setHeader(
'foo',
'bar');
108 $this->assertEquals((
string)$this->inner, (
string)$this->outer);
The Request class represents a single HTTP request.
if($session===NULL) $postData