@@ -38,8 +38,8 @@ public function testConvertTextResponse(): void
38
38
39
39
$ response = $ converter ->convert ($ httpResponse );
40
40
41
- $ this -> assertInstanceOf (TextResponse::class, $ response );
42
- $ this -> assertEquals ('Hello world ' , $ response ->getContent ());
41
+ self :: assertInstanceOf (TextResponse::class, $ response );
42
+ self :: assertSame ('Hello world ' , $ response ->getContent ());
43
43
}
44
44
45
45
public function testConvertToolCallResponse (): void
@@ -70,12 +70,12 @@ public function testConvertToolCallResponse(): void
70
70
71
71
$ response = $ converter ->convert ($ httpResponse );
72
72
73
- $ this -> assertInstanceOf (ToolCallResponse::class, $ response );
73
+ self :: assertInstanceOf (ToolCallResponse::class, $ response );
74
74
$ toolCalls = $ response ->getContent ();
75
- $ this -> assertCount (1 , $ toolCalls );
76
- $ this -> assertEquals ('call_123 ' , $ toolCalls [0 ]->id );
77
- $ this -> assertEquals ('test_function ' , $ toolCalls [0 ]->name );
78
- $ this -> assertEquals (['arg1 ' => 'value1 ' ], $ toolCalls [0 ]->arguments );
75
+ self :: assertCount (1 , $ toolCalls );
76
+ self :: assertSame ('call_123 ' , $ toolCalls [0 ]->id );
77
+ self :: assertSame ('test_function ' , $ toolCalls [0 ]->name );
78
+ self :: assertSame (['arg1 ' => 'value1 ' ], $ toolCalls [0 ]->arguments );
79
79
}
80
80
81
81
public function testConvertMultipleChoices (): void
@@ -103,11 +103,11 @@ public function testConvertMultipleChoices(): void
103
103
104
104
$ response = $ converter ->convert ($ httpResponse );
105
105
106
- $ this -> assertInstanceOf (ChoiceResponse::class, $ response );
106
+ self :: assertInstanceOf (ChoiceResponse::class, $ response );
107
107
$ choices = $ response ->getContent ();
108
- $ this -> assertCount (2 , $ choices );
109
- $ this -> assertEquals ('Choice 1 ' , $ choices [0 ]->getContent ());
110
- $ this -> assertEquals ('Choice 2 ' , $ choices [1 ]->getContent ());
108
+ self :: assertCount (2 , $ choices );
109
+ self :: assertSame ('Choice 1 ' , $ choices [0 ]->getContent ());
110
+ self :: assertSame ('Choice 2 ' , $ choices [1 ]->getContent ());
111
111
}
112
112
113
113
public function testContentFilterException (): void
0 commit comments