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

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Mar 31, 2023
1 parent e37d90c commit ffe5ded
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/V2Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
it('should get a answer contact the context', function () use ($chatGPT) {
$chatGPT->ask('Hello, how are you?');
$return = $chatGPT->ask('What did I ask you just now?');
$this->assertArrayHasKey('answer', $return);
$this->assertStringContainsString('Hello, how are you?', $return['answer']);
foreach ($return as $answer) {
$this->assertArrayHasKey('answer', $answer);
$this->assertStringContainsString('Hello, how are you?', $answer['answer']);
}
})->group('working');

0 comments on commit ffe5ded

Please sign in to comment.