client = new Client( new Psr18Client(), new Authentication(getenv('OPENAI_CLIENT_TEST_AUTH_TOKEN') ?: 'token'), (new MockUri())->base ); } public function testDownloadMethod(): void { $download = $this->client->filesContent()->download('alpha0'); $response = $download->getResponse(); $this->assertGreaterThanOrEqual(200, $response->getStatusCode()); $this->assertLessThan(300, $response->getStatusCode()); $model = $download->toModel(); $model->jsonSerialize(); $this->assertInstanceOf(DownloadResponse::class, $model); } }