@@ -101,7 +101,7 @@ public function testInvokeSaveData()
101101 $ this ->assertEquals ('/articles ' , $ result ->url );
102102 $ this ->assertNotEmpty ($ result ->requested_at );
103103 $ this ->assertNotEmpty ('text/html ' , $ result ->content_type );
104- $ this ->assertEquals (200 , $ result ->status_code );
104+ $ this ->assertSame (200 , $ result ->status_code );
105105 $ this ->assertGreaterThan (1 , $ result ->panels );
106106
107107 $ this ->assertEquals ('SqlLog ' , $ result ->panels [11 ]->panel );
@@ -149,7 +149,7 @@ public function testInvokeNoModifyBinaryResponse()
149149 $ requests = TableRegistry::get ('DebugKit.Requests ' );
150150 $ total = $ requests ->find ()->where (['url ' => '/articles ' ])->count ();
151151
152- $ this ->assertEquals (1 , $ total , 'Should track response ' );
152+ $ this ->assertSame (1 , $ total , 'Should track response ' );
153153 $ body = $ result ->getBody ();
154154 $ this ->assertNotContains ('__debug_kit ' , '' . $ body );
155155 $ this ->assertNotContains ('<script ' , '' . $ body );
@@ -182,7 +182,7 @@ public function testInvokeNoModifyNonHtmlResponse()
182182 $ requests = TableRegistry::get ('DebugKit.Requests ' );
183183 $ total = $ requests ->find ()->where (['url ' => '/articles ' ])->count ();
184184
185- $ this ->assertEquals (1 , $ total , 'Should track response ' );
185+ $ this ->assertSame (1 , $ total , 'Should track response ' );
186186 $ body = $ result ->getBody ();
187187 $ this ->assertSame ('OK ' , '' . $ body );
188188 }
@@ -215,7 +215,7 @@ public function testInvokeNoModifyRequestAction()
215215 $ requests = TableRegistry::get ('DebugKit.Requests ' );
216216 $ total = $ requests ->find ()->where (['url ' => '/articles ' ])->count ();
217217
218- $ this ->assertEquals (0 , $ total , 'Should not track sub-requests ' );
218+ $ this ->assertSame (0 , $ total , 'Should not track sub-requests ' );
219219 $ body = $ result ->getBody ();
220220 $ this ->assertNotContains ('<script ' , '' . $ body );
221221 }
0 commit comments