public function testDeleteUser() { $config = (include 'config-test.php'); $client = new Client($config); $mockBody = Stream::factory(json_encode(["resultCode" => 0, "message" => "SUCCESS"])); $mock = new Mock([new Response(200, [], $mockBody)]); // Add the mock subscriber to the client. $client->getHttpClient()->getEmitter()->attach($mock); // Call get user and make sure we get back the user we expect from mock $user = $client->deleteUser(["id" => 7225516194326404, "transferTo" => 7225516194326411, "removeFromSharing" => 'true']); $this->assertEquals('SUCCESS', $user['message']); }