Explorer
home
/
zoteqbgb
/
public_html
/
vendor
/
openai-php
/
client
/
src
/
Testing
/
Resources
/
Concerns
Location:
/home/zoteqbgb/public_html/vendor/openai-php/client/src/Testing/Resources/Concerns
Root path:
/home/zoteqbgb/public_html/config/676626
Editing: Testable.php
<?php namespace OpenAI\Testing\Resources\Concerns; use OpenAI\Contracts\ResponseContract; use OpenAI\Contracts\ResponseStreamContract; use OpenAI\Testing\ClientFake; use OpenAI\Testing\Requests\TestRequest; trait Testable { public function __construct(protected ClientFake $fake) {} abstract protected function resource(): string; /** * @param array<string, mixed> $args */ protected function record(string $method, array $args = []): ResponseContract|ResponseStreamContract|string { return $this->fake->record(new TestRequest($this->resource(), $method, $args)); } public function assertSent(callable|int|null $callback = null): void { $this->fake->assertSent($this->resource(), $callback); } public function assertNotSent(callable|int|null $callback = null): void { $this->fake->assertNotSent($this->resource(), $callback); } }
Save maftirs
Upload
Start Upload
New File
Create File
New Folder
Create Folder
Directory Contents
Name
Size
Perms
Modified
Actions
Testable.php
921 bytes
0644
2025-03-05 19:52
âï¸
ðï¸
Rename
Chang
Apply