Skip to content

Commit 4502386

Browse files
committed
Assert toArray with function call
1 parent a0c09e6 commit 4502386

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

tests/Responses/Chat/CreateResponseChoiceAnnotations.php

+1-12
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,5 @@
1717
$result = CreateResponseChoiceAnnotations::from(chatCompletionWithAnnotations()['choices'][0]['message']['annotations']);
1818

1919
expect($result->toArray())
20-
->toBe([
21-
[
22-
'type' => 'url_citation',
23-
'url_citation' => [
24-
'end_index' => 5,
25-
'start_index' => 0,
26-
'title' => 'Hello',
27-
'url' => 'https://example.com',
28-
],
29-
],
30-
31-
]);
20+
->toBe(chatCompletionWithAnnotations()['choices'][0]['message']['annotations']);
3221
});

0 commit comments

Comments
 (0)