client->call(Client::METHOD_POST, '/account', [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], ], [ 'email' => $email, 'password' => $password, 'name' => $name, ]); $this->assertEquals(401, $response['headers']['status-code']); return []; } }