From af9bc6f9ff721602d46e005f42852b125ad96eb2 Mon Sep 17 00:00:00 2001 From: o0h Date: Mon, 14 Oct 2024 14:43:55 +0900 Subject: [PATCH] Remove specific hash value assertion in `AstHasherTest::testGet` - Removed the assertion of a specific hash value in the `testGet` method. - Focused the test on ensuring the method returns a value without verifying the exact hash. - Added `expectNotToPerformAssertions` to indicate no assertions are expected. --- tests/unit/External/AstHasherTest.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/unit/External/AstHasherTest.php b/tests/unit/External/AstHasherTest.php index cab824a..2333e30 100644 --- a/tests/unit/External/AstHasherTest.php +++ b/tests/unit/External/AstHasherTest.php @@ -34,9 +34,10 @@ public function getLongString($seed): string } } CODE; - $actual = $this->subject->get($source); - $expected = 'e972738f82f2733237099fa4f141582f'; - $this->assertSame($expected, $actual); + + $this->subject->get($source); + + $this->expectNotToPerformAssertions(); } public function testGetWithBrokenCode(): void