Skip to content

Commit bf08cff

Browse files
committed
feat(Platform): remove return types from test methods to satisfy CI rule
1 parent 457bbe0 commit bf08cff

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

src/platform/tests/Factory/ProviderConfigFactoryTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#[CoversClass(ProviderConfigFactory::class)]
2424
class 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(

src/platform/tests/Factory/ProviderFactoryTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ protected function tearDown(): void
3030
AzureMetaBridge::$lastArgs = [];
3131
}
3232

33-
public function testBuildsOpenAiWithBearerAuth(): void
33+
public function testBuildsOpenAiWithBearerAuth()
3434
{
3535
$factory = new ProviderFactory();
3636

@@ -49,7 +49,7 @@ public function testBuildsOpenAiWithBearerAuth(): void
4949
$this->assertArrayNotHasKey('api-key', $headers);
5050
}
5151

52-
public function testBuildsAzureOpenAiWithApiKeyHeader(): void
52+
public function testBuildsAzureOpenAiWithApiKeyHeader()
5353
{
5454
$factory = new ProviderFactory();
5555

@@ -73,7 +73,7 @@ public function testBuildsAzureOpenAiWithApiKeyHeader(): void
7373
$this->assertArrayNotHasKey('Authorization', $headers);
7474
}
7575

76-
public function testBuildsAzureMetaWhenEngineMeta(): void
76+
public function testBuildsAzureMetaWhenEngineMeta()
7777
{
7878
$factory = new ProviderFactory();
7979

@@ -95,15 +95,15 @@ public function testBuildsAzureMetaWhenEngineMeta(): void
9595
$this->assertSame('AZ', $headers['api-key'] ?? null);
9696
}
9797

98-
public function testUnsupportedProviderThrows(): void
98+
public function testUnsupportedProviderThrows()
9999
{
100100
$this->expectException(\InvalidArgumentException::class);
101101

102102
$factory = new ProviderFactory();
103103
$factory->fromDsn('ai+madeup://[email protected]');
104104
}
105105

106-
public function testAzureMissingDeploymentOrVersionBubblesUp(): void
106+
public function testAzureMissingDeploymentOrVersionBubblesUp()
107107
{
108108
$this->expectException(\InvalidArgumentException::class);
109109

0 commit comments

Comments
 (0)