public function testDeactivateUser() { $config = (include 'config-test.php'); $client = new Client($config); $mockBody = Stream::factory('{}'); $mock = new Mock([new Response(204, [], $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->deactivateUser(["userId" => 7225516194326404, "blockUser" => false]); $this->assertEquals(204, $user['statusCode']); }