|
@@ 84-93 (lines=10) @@
|
| 81 |
|
$this->assertInstanceOf('\Bee4\Transport\Message\Response', $request2->send()); |
| 82 |
|
} |
| 83 |
|
|
| 84 |
|
public function testGet() |
| 85 |
|
{ |
| 86 |
|
$request = $this->object->get('/index.html'); |
| 87 |
|
$response = $request->send(); |
| 88 |
|
$options = $request->getOptions(); |
| 89 |
|
|
| 90 |
|
$this->assertArrayHasKey(CURLOPT_HTTPGET, $options); |
| 91 |
|
$this->assertTrue($options[CURLOPT_HTTPGET]); |
| 92 |
|
$this->assertInstanceOf('\Bee4\Transport\Message\Request\Http\Get', $response->getRequest()); |
| 93 |
|
} |
| 94 |
|
|
| 95 |
|
public function testPost() |
| 96 |
|
{ |
|
@@ 108-117 (lines=10) @@
|
| 105 |
|
$this->assertInstanceOf('\Bee4\Transport\Message\Request\Http\Post', $response->getRequest()); |
| 106 |
|
} |
| 107 |
|
|
| 108 |
|
public function testHead() |
| 109 |
|
{ |
| 110 |
|
$request = $this->object->head('/index.html'); |
| 111 |
|
$response = $request->send(); |
| 112 |
|
$options = $request->getOptions(); |
| 113 |
|
|
| 114 |
|
$this->assertArrayHasKey(CURLOPT_NOBODY, $options); |
| 115 |
|
$this->assertTrue($options[CURLOPT_NOBODY]); |
| 116 |
|
$this->assertInstanceOf('\Bee4\Transport\Message\Request\Http\Head', $response->getRequest()); |
| 117 |
|
} |
| 118 |
|
|
| 119 |
|
public function testDelete() |
| 120 |
|
{ |