@@ -56,9 +56,9 @@ public function testConstructor(): void
5656 {
5757 $ this ->assertSame ($ this ->agent , $ this ->conversation ->getAgent ());
5858 $ this ->assertEmpty ($ this ->conversation ->getMessages ());
59- $ this ->assertEquals (0 , $ this ->conversation ->getInputTokens ());
60- $ this ->assertEquals (0 , $ this ->conversation ->getOutputTokens ());
61- $ this ->assertEquals (0 , $ this ->conversation ->getTotalTokens ());
59+ $ this ->assertSame (0 , $ this ->conversation ->getInputTokens ());
60+ $ this ->assertSame (0 , $ this ->conversation ->getOutputTokens ());
61+ $ this ->assertSame (0 , $ this ->conversation ->getTotalTokens ());
6262 $ this ->assertIsCallable ($ this ->conversation ->getListener ());
6363 }
6464
@@ -73,8 +73,8 @@ public function testMessage(): void
7373 $ this ->assertCount (1 , $ this ->conversation ->getMessages ());
7474
7575 $ firstMessage = $ this ->conversation ->getMessages ()[0 ];
76- $ this ->assertEquals (Role::ROLE_USER , $ firstMessage ->getRole ());
77- $ this ->assertEquals ('Hello, AI! ' , $ firstMessage ->getContent ());
76+ $ this ->assertSame (Role::ROLE_USER , $ firstMessage ->getRole ());
77+ $ this ->assertSame ('Hello, AI! ' , $ firstMessage ->getContent ());
7878 }
7979
8080 public function testMultipleMessages (): void
@@ -90,14 +90,14 @@ public function testMultipleMessages(): void
9090 $ messages = $ this ->conversation ->getMessages ();
9191 $ this ->assertCount (3 , $ messages );
9292
93- $ this ->assertEquals (Role::ROLE_USER , $ messages [0 ]->getRole ());
94- $ this ->assertEquals ('Hello ' , $ messages [0 ]->getContent ());
93+ $ this ->assertSame (Role::ROLE_USER , $ messages [0 ]->getRole ());
94+ $ this ->assertSame ('Hello ' , $ messages [0 ]->getContent ());
9595
96- $ this ->assertEquals (Role::ROLE_ASSISTANT , $ messages [1 ]->getRole ());
97- $ this ->assertEquals ('Hi there! ' , $ messages [1 ]->getContent ());
96+ $ this ->assertSame (Role::ROLE_ASSISTANT , $ messages [1 ]->getRole ());
97+ $ this ->assertSame ('Hi there! ' , $ messages [1 ]->getContent ());
9898
99- $ this ->assertEquals (Role::ROLE_USER , $ messages [2 ]->getRole ());
100- $ this ->assertEquals ('How are you? ' , $ messages [2 ]->getContent ());
99+ $ this ->assertSame (Role::ROLE_USER , $ messages [2 ]->getRole ());
100+ $ this ->assertSame ('How are you? ' , $ messages [2 ]->getContent ());
101101 }
102102
103103 public function testSend (): void
@@ -112,11 +112,11 @@ public function testSend(): void
112112 // Verify the response was added to conversation
113113 $ conversationMessages = $ this ->conversation ->getMessages ();
114114 $ this ->assertNotEmpty ($ conversationMessages );
115- $ this ->assertEquals (Role::ROLE_USER , $ conversationMessages [0 ]->getRole ());
116- $ this ->assertEquals ('Hello ' , $ conversationMessages [0 ]->getContent ());
115+ $ this ->assertSame (Role::ROLE_USER , $ conversationMessages [0 ]->getRole ());
116+ $ this ->assertSame ('Hello ' , $ conversationMessages [0 ]->getContent ());
117117
118118 // Verify AI response
119- $ this ->assertEquals (Role::ROLE_ASSISTANT , $ conversationMessages [1 ]->getRole ());
119+ $ this ->assertSame (Role::ROLE_ASSISTANT , $ conversationMessages [1 ]->getRole ());
120120 $ this ->assertNotEmpty ($ conversationMessages [1 ]->getContent ());
121121 }
122122
@@ -164,24 +164,24 @@ public function testSchema(): void
164164 $ this ->assertIsString ($ json ['unit ' ], 'Unit must be a string ' );
165165
166166 $ this ->assertStringContainsString ('San Francisco ' , $ json ['location ' ]);
167- $ this ->assertEquals ('celsius ' , $ json ['unit ' ]);
167+ $ this ->assertSame ('celsius ' , $ json ['unit ' ]);
168168 }
169169
170170 public function testTokenCounting (): void
171171 {
172172 $ this ->conversation ->countInputTokens (10 );
173- $ this ->assertEquals (10 , $ this ->conversation ->getInputTokens ());
173+ $ this ->assertSame (10 , $ this ->conversation ->getInputTokens ());
174174
175175 $ this ->conversation ->countInputTokens (5 );
176- $ this ->assertEquals (15 , $ this ->conversation ->getInputTokens ());
176+ $ this ->assertSame (15 , $ this ->conversation ->getInputTokens ());
177177
178178 $ this ->conversation ->countOutputTokens (20 );
179- $ this ->assertEquals (20 , $ this ->conversation ->getOutputTokens ());
179+ $ this ->assertSame (20 , $ this ->conversation ->getOutputTokens ());
180180
181181 $ this ->conversation ->countOutputTokens (10 );
182- $ this ->assertEquals (30 , $ this ->conversation ->getOutputTokens ());
182+ $ this ->assertSame (30 , $ this ->conversation ->getOutputTokens ());
183183
184- $ this ->assertEquals (45 , $ this ->conversation ->getTotalTokens ());
184+ $ this ->assertSame (45 , $ this ->conversation ->getTotalTokens ());
185185 }
186186
187187 public function testListener (): void
0 commit comments