@@ -267,14 +267,14 @@ public function testHeaderContentLengthNotSharedBetweenClients(): void
267267 public function testOptionsDelay (): void
268268 {
269269 $ request = $ this ->getRequest ();
270- $ this ->assertSame (0.0 , $ request ->getDelay ());
270+ $ this ->assertEqualsWithDelta (0.0 , $ request ->getDelay (), PHP_FLOAT_EPSILON );
271271
272272 $ options = [
273273 'delay ' => 2000 ,
274274 'headers ' => ['fruit ' => 'apple ' ],
275275 ];
276276 $ request = $ this ->getRequest ($ options );
277- $ this ->assertSame (2.0 , $ request ->getDelay ());
277+ $ this ->assertEqualsWithDelta (2.0 , $ request ->getDelay (), PHP_FLOAT_EPSILON );
278278 }
279279
280280 public function testPatchSetsCorrectMethod (): void
@@ -356,10 +356,10 @@ public function testRequestSetsBasicCurlOptions(): void
356356 $ this ->assertTrue ($ options [CURLOPT_FRESH_CONNECT ]);
357357
358358 $ this ->assertArrayHasKey (CURLOPT_TIMEOUT_MS , $ options );
359- $ this ->assertSame (0.0 , $ options [CURLOPT_TIMEOUT_MS ]);
359+ $ this ->assertEqualsWithDelta (0.0 , $ options [CURLOPT_TIMEOUT_MS ], PHP_FLOAT_EPSILON );
360360
361361 $ this ->assertArrayHasKey (CURLOPT_CONNECTTIMEOUT_MS , $ options );
362- $ this ->assertSame (150000.0 , $ options [CURLOPT_CONNECTTIMEOUT_MS ]);
362+ $ this ->assertEqualsWithDelta (150000.0 , $ options [CURLOPT_CONNECTTIMEOUT_MS ], PHP_FLOAT_EPSILON );
363363 }
364364
365365 public function testAuthBasicOption (): void
@@ -734,7 +734,7 @@ public function testSendWithDelay(): void
734734 $ request ->get ('products ' );
735735
736736 // we still need to check the code coverage to make sure this was done
737- $ this ->assertSame (0.1 , $ request ->getDelay ());
737+ $ this ->assertEqualsWithDelta (0.1 , $ request ->getDelay (), PHP_FLOAT_EPSILON );
738738 }
739739
740740 public function testSendContinued (): void
0 commit comments