diff --git a/README.md b/README.md index d3a4672..193215b 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ class MyTest extends TestCase // Wait until the result is set (max 10 seconds, check every 500ms) self::assertEventually(function () use (&$result) { $this->assertNotNull($result); - $this->assertEquals('expected', $result); + $this->assertSame('expected', $result); }, timeoutMs: 10000, waitMs: 500); } } diff --git a/tests/AsyncTest.php b/tests/AsyncTest.php index de24574..bf3bd19 100644 --- a/tests/AsyncTest.php +++ b/tests/AsyncTest.php @@ -50,7 +50,7 @@ public function testCriticalExceptionStopsRetrying(): void }, timeoutMs: 5000, waitMs: 100); // Counter should be exactly 2, not more - $this->assertEquals(2, $counter); + $this->assertSame(2, $counter); } public function testDefaultTimeout(): void @@ -82,9 +82,9 @@ public function testMultipleAssertionsInProbe(): void $counter++; $this->assertGreaterThan(0, $counter); $this->assertLessThanOrEqual(10, $counter); - $this->assertEquals(3, $counter); // Will pass on 3rd attempt + $this->assertSame(3, $counter); // Will pass on 3rd attempt }, timeoutMs: 3000, waitMs: 100); - $this->assertEquals(3, $counter); + $this->assertSame(3, $counter); } }