Skip to content
This repository was archived by the owner on Nov 28, 2023. It is now read-only.

Commit ffe5ded

Browse files
committed
Update tests
1 parent e37d90c commit ffe5ded

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/V2Test.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
it('should get a answer contact the context', function () use ($chatGPT) {
2020
$chatGPT->ask('Hello, how are you?');
2121
$return = $chatGPT->ask('What did I ask you just now?');
22-
$this->assertArrayHasKey('answer', $return);
23-
$this->assertStringContainsString('Hello, how are you?', $return['answer']);
22+
foreach ($return as $answer) {
23+
$this->assertArrayHasKey('answer', $answer);
24+
$this->assertStringContainsString('Hello, how are you?', $answer['answer']);
25+
}
2426
})->group('working');

0 commit comments

Comments
 (0)