2323#[CoversClass(ProviderConfigFactory::class)]
2424class ProviderConfigFactoryTest extends TestCase
2525{
26- public function testOpenAiDefaults (): void
26+ public function testOpenAiDefaults ()
2727 {
2828 $ cfg = ProviderConfigFactory::fromDsn (
2929 'ai+openai://[email protected] ?model=gpt-4o-mini&organization=org_123&headers[x-foo]=bar ' @@ -37,15 +37,15 @@ public function testOpenAiDefaults(): void
3737 $ this ->assertSame ('bar ' , $ cfg ->headers ['x-foo ' ] ?? null );
3838 }
3939
40- public function testOpenAiWithoutHostUsesDefault (): void
40+ public function testOpenAiWithoutHostUsesDefault ()
4141 {
4242 $ cfg = ProviderConfigFactory::fromDsn ('ai+openai://sk-test@/?model=gpt-4o-mini ' );
4343
4444 $ this ->assertSame ('https://api.openai.com ' , $ cfg ->baseUri );
4545 $ this ->assertSame ('gpt-4o-mini ' , $ cfg ->options ['model ' ] ?? null );
4646 }
4747
48- public function testAzureOpenAiHappyPath (): void
48+ public function testAzureOpenAiHappyPath ()
4949 {
5050 $ cfg = ProviderConfigFactory::fromDsn (
5151 'ai+azure://[email protected] ?deployment=gpt-4o&version=2024-08-01-preview&engine=openai ' @@ -59,7 +59,7 @@ public function testAzureOpenAiHappyPath(): void
5959 $ this ->assertSame ('openai ' , $ cfg ->options ['engine ' ] ?? null );
6060 }
6161
62- public function testAzureMetaHappyPath (): void
62+ public function testAzureMetaHappyPath ()
6363 {
6464 $ cfg = ProviderConfigFactory::fromDsn (
6565 'ai+azure://[email protected] ?deployment=llama-3.1&version=2024-08-01-preview&engine=meta ' @@ -71,7 +71,7 @@ public function testAzureMetaHappyPath(): void
7171 $ this ->assertSame ('llama-3.1 ' , $ cfg ->options ['deployment ' ] ?? null );
7272 }
7373
74- public function testGenericOptionsAndBooleans (): void
74+ public function testGenericOptionsAndBooleans ()
7575 {
7676 $ cfg = ProviderConfigFactory::fromDsn (
7777 'ai+openai://sk@/?model=gpt-4o-mini&timeout=10&verify_peer=true&proxy=http://proxy:8080 '
@@ -82,31 +82,31 @@ public function testGenericOptionsAndBooleans(): void
8282 $ this ->assertSame ('http://proxy:8080 ' , $ cfg ->options ['proxy ' ] ?? null );
8383 }
8484
85- public function testUnknownProviderThrows (): void
85+ public function testUnknownProviderThrows ()
8686 {
8787 $ this ->expectException (\InvalidArgumentException::class);
8888 ProviderConfigFactory::fromDsn ('ai+unknown://key@host ' );
8989 }
9090
91- public function testAzureMissingHostThrows (): void
91+ public function testAzureMissingHostThrows ()
9292 {
9393 $ this ->expectException (\InvalidArgumentException::class);
9494 ProviderConfigFactory::fromDsn ('ai+azure://AZ_KEY@/?deployment=gpt-4o&version=2024-08-01-preview ' );
9595 }
9696
97- public function testAzureMissingDeploymentThrows (): void
97+ public function testAzureMissingDeploymentThrows ()
9898 {
9999 $ this ->expectException (\InvalidArgumentException::class);
100100 ProviderConfigFactory::
fromDsn (
'ai+azure://[email protected] ?version=2024-08-01-preview ' );
101101 }
102102
103- public function testAzureMissingVersionThrows (): void
103+ public function testAzureMissingVersionThrows ()
104104 {
105105 $ this ->expectException (\InvalidArgumentException::class);
106106 ProviderConfigFactory::
fromDsn (
'ai+azure://[email protected] ?deployment=gpt-4o ' );
107107 }
108108
109- public function testAzureUnsupportedEngineThrows (): void
109+ public function testAzureUnsupportedEngineThrows ()
110110 {
111111 $ this ->expectException (\InvalidArgumentException::class);
112112 ProviderConfigFactory::fromDsn (
0 commit comments