tests/Doctrine/Tests/ODM/CouchDB/HTTP/SocketClientTest.php 1 location
|
@@ 75-87 (lines=13) @@
|
72 |
|
/** |
73 |
|
* @depends testCreateDatabase |
74 |
|
*/ |
75 |
|
public function testGetDatabaseInformation() |
76 |
|
{ |
77 |
|
$db = new HTTP\SocketClient(); |
78 |
|
|
79 |
|
$response = $db->request( 'GET', '/' ); |
80 |
|
|
81 |
|
$this->assertInstanceOf('Doctrine\CouchDB\HTTP\Response', $response); |
82 |
|
|
83 |
|
$this->assertSame( |
84 |
|
'Welcome', |
85 |
|
$response->body['couchdb'] |
86 |
|
); |
87 |
|
} |
88 |
|
|
89 |
|
/** |
90 |
|
* @depends testCreateDatabase |
tests/Doctrine/Tests/ODM/CouchDB/HTTP/StreamClientTest.php 1 location
|
@@ 90-102 (lines=13) @@
|
87 |
|
/** |
88 |
|
* @depends testCreateDatabase |
89 |
|
*/ |
90 |
|
public function testGetDatabaseInformation() |
91 |
|
{ |
92 |
|
$db = new HTTP\StreamClient(); |
93 |
|
|
94 |
|
$response = $db->request( 'GET', '/' ); |
95 |
|
|
96 |
|
$this->assertInstanceOf('Doctrine\CouchDB\HTTP\Response', $response); |
97 |
|
|
98 |
|
$this->assertSame( |
99 |
|
'Welcome', |
100 |
|
$response->body['couchdb'] |
101 |
|
); |
102 |
|
} |
103 |
|
|
104 |
|
/** |
105 |
|
* @depends testCreateDatabase |