@@ -267,14 +267,14 @@ public function testHeaderContentLengthNotSharedBetweenClients(): void
267
267
public function testOptionsDelay (): void
268
268
{
269
269
$ request = $ this ->getRequest ();
270
- $ this ->assertSame (0.0 , $ request ->getDelay ());
270
+ $ this ->assertEqualsWithDelta (0.0 , $ request ->getDelay (), PHP_FLOAT_EPSILON );
271
271
272
272
$ options = [
273
273
'delay ' => 2000 ,
274
274
'headers ' => ['fruit ' => 'apple ' ],
275
275
];
276
276
$ request = $ this ->getRequest ($ options );
277
- $ this ->assertSame (2.0 , $ request ->getDelay ());
277
+ $ this ->assertEqualsWithDelta (2.0 , $ request ->getDelay (), PHP_FLOAT_EPSILON );
278
278
}
279
279
280
280
public function testPatchSetsCorrectMethod (): void
@@ -356,10 +356,10 @@ public function testRequestSetsBasicCurlOptions(): void
356
356
$ this ->assertTrue ($ options [CURLOPT_FRESH_CONNECT ]);
357
357
358
358
$ 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 );
360
360
361
361
$ 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 );
363
363
}
364
364
365
365
public function testAuthBasicOption (): void
@@ -734,7 +734,7 @@ public function testSendWithDelay(): void
734
734
$ request ->get ('products ' );
735
735
736
736
// 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 );
738
738
}
739
739
740
740
public function testSendContinued (): void
0 commit comments