Skip to content

Commit be78cc1

Browse files
committed
minor #1154 Move bridge fixtures to their dedicated bridge test directories (OskarStark)
This PR was merged into the main branch. Discussion ---------- Move bridge fixtures to their dedicated bridge test directories | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Docs? | no | Issues | -- | License | MIT Commits ------- 9fcaa16 Move bridge fixtures to their dedicated bridge test directories
2 parents 9a2e13b + 9fcaa16 commit be78cc1

File tree

8 files changed

+6
-6
lines changed

8 files changed

+6
-6
lines changed

src/platform/tests/Bridge/Gemini/CodeExecution/ResultConverterTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ final class ResultConverterTest extends TestCase
2222
public function testItReturnsAggregatedTextOnSuccess()
2323
{
2424
$response = $this->createStub(ResponseInterface::class);
25-
$responseContent = file_get_contents(\dirname(__DIR__, 6).'/fixtures/Bridge/Gemini/code_execution_outcome_ok.json');
25+
$responseContent = file_get_contents(__DIR__.'/fixtures/code_execution_outcome_ok.json');
2626

2727
$response
2828
->method('toArray')
@@ -39,7 +39,7 @@ public function testItReturnsAggregatedTextOnSuccess()
3939
public function testItThrowsExceptionOnFailure()
4040
{
4141
$response = $this->createStub(ResponseInterface::class);
42-
$responseContent = file_get_contents(\dirname(__DIR__, 6).'/fixtures/Bridge/Gemini/code_execution_outcome_failed.json');
42+
$responseContent = file_get_contents(__DIR__.'/fixtures/code_execution_outcome_failed.json');
4343

4444
$response
4545
->method('toArray')
@@ -54,7 +54,7 @@ public function testItThrowsExceptionOnFailure()
5454
public function testItThrowsExceptionOnTimeout()
5555
{
5656
$response = $this->createStub(ResponseInterface::class);
57-
$responseContent = file_get_contents(\dirname(__DIR__, 6).'/fixtures/Bridge/Gemini/code_execution_outcome_deadline_exceeded.json');
57+
$responseContent = file_get_contents(__DIR__.'/fixtures/code_execution_outcome_deadline_exceeded.json');
5858

5959
$response
6060
->method('toArray')

fixtures/Bridge/Gemini/code_execution_outcome_deadline_exceeded.json renamed to src/platform/tests/Bridge/Gemini/CodeExecution/fixtures/code_execution_outcome_deadline_exceeded.json

File renamed without changes.

fixtures/Bridge/Gemini/code_execution_outcome_failed.json renamed to src/platform/tests/Bridge/Gemini/CodeExecution/fixtures/code_execution_outcome_failed.json

File renamed without changes.

fixtures/Bridge/Gemini/code_execution_outcome_ok.json renamed to src/platform/tests/Bridge/Gemini/CodeExecution/fixtures/code_execution_outcome_ok.json

File renamed without changes.

src/platform/tests/Bridge/VertexAi/Gemini/ResultConverterTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function testItConvertsAResponseToAVectorResult()
4646
public function testItReturnsAggregatedTextOnSuccess()
4747
{
4848
$response = $this->createStub(ResponseInterface::class);
49-
$responseContent = file_get_contents(\dirname(__DIR__, 6).'/fixtures/Bridge/VertexAi/code_execution_outcome_ok.json');
49+
$responseContent = file_get_contents(__DIR__.'/fixtures/code_execution_outcome_ok.json');
5050

5151
$response
5252
->method('toArray')
@@ -99,7 +99,7 @@ public function testItReturnsToolCallEvenIfMultipleContentPartsAreGiven()
9999
public function testItThrowsExceptionOnFailure()
100100
{
101101
$response = $this->createStub(ResponseInterface::class);
102-
$responseContent = file_get_contents(\dirname(__DIR__, 6).'/fixtures/Bridge/VertexAi/code_execution_outcome_failed.json');
102+
$responseContent = file_get_contents(__DIR__.'/fixtures/code_execution_outcome_failed.json');
103103

104104
$response
105105
->method('toArray')
@@ -114,7 +114,7 @@ public function testItThrowsExceptionOnFailure()
114114
public function testItThrowsExceptionOnTimeout()
115115
{
116116
$response = $this->createStub(ResponseInterface::class);
117-
$responseContent = file_get_contents(\dirname(__DIR__, 6).'/fixtures/Bridge/VertexAi/code_execution_outcome_deadline_exceeded.json');
117+
$responseContent = file_get_contents(__DIR__.'/fixtures/code_execution_outcome_deadline_exceeded.json');
118118

119119
$response
120120
->method('toArray')

fixtures/Bridge/VertexAi/code_execution_outcome_deadline_exceeded.json renamed to src/platform/tests/Bridge/VertexAi/Gemini/fixtures/code_execution_outcome_deadline_exceeded.json

File renamed without changes.

fixtures/Bridge/VertexAi/code_execution_outcome_failed.json renamed to src/platform/tests/Bridge/VertexAi/Gemini/fixtures/code_execution_outcome_failed.json

File renamed without changes.

fixtures/Bridge/VertexAi/code_execution_outcome_ok.json renamed to src/platform/tests/Bridge/VertexAi/Gemini/fixtures/code_execution_outcome_ok.json

File renamed without changes.

0 commit comments

Comments
 (0)