Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ final class ResultConverterTest extends TestCase
public function testItReturnsAggregatedTextOnSuccess()
{
$response = $this->createStub(ResponseInterface::class);
$responseContent = file_get_contents(\dirname(__DIR__, 6).'/fixtures/Bridge/Gemini/code_execution_outcome_ok.json');
$responseContent = file_get_contents(__DIR__.'/fixtures/code_execution_outcome_ok.json');

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

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

$response
->method('toArray')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function testItConvertsAResponseToAVectorResult()
public function testItReturnsAggregatedTextOnSuccess()
{
$response = $this->createStub(ResponseInterface::class);
$responseContent = file_get_contents(\dirname(__DIR__, 6).'/fixtures/Bridge/VertexAi/code_execution_outcome_ok.json');
$responseContent = file_get_contents(__DIR__.'/fixtures/code_execution_outcome_ok.json');

$response
->method('toArray')
Expand Down Expand Up @@ -99,7 +99,7 @@ public function testItReturnsToolCallEvenIfMultipleContentPartsAreGiven()
public function testItThrowsExceptionOnFailure()
{
$response = $this->createStub(ResponseInterface::class);
$responseContent = file_get_contents(\dirname(__DIR__, 6).'/fixtures/Bridge/VertexAi/code_execution_outcome_failed.json');
$responseContent = file_get_contents(__DIR__.'/fixtures/code_execution_outcome_failed.json');

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

$response
->method('toArray')
Expand Down
Loading