We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0958a49 commit 0ee6eb3Copy full SHA for 0ee6eb3
tests/PHPCouchDB/ServerTest.php
@@ -118,4 +118,15 @@ public function testUseADbWithCreateThatDoesNotExist() {
118
$server = new \PHPCouchDB\Server(["client" => $client]);
119
$this->assertInstanceOf("\PHPCouchDB\Database", $server->useDb(["name" => "egdb", "create_if_not_exists" => true]));
120
}
121
+
122
+ public function testGetClient() {
123
+ $mock = new MockHandler([ $this->db_response ]);
124
125
+ $handler = HandlerStack::create($mock);
126
+ $client = new Client(['handler' => $handler]);
127
128
+ // userland code starts
129
+ $server = new \PHPCouchDB\Server(["client" => $client]);
130
+ $this->assertInstanceOf("\GuzzleHttp\ClientInterface", $server->getClient());
131
+ }
132
0 commit comments