Skip to content

Commit 15c2965

Browse files
Fix forgotten annotation causing tests to fail
1 parent 8055545 commit 15c2965

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests/HashidsTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Hashids\Hashids;
1515
use InvalidArgumentException;
1616
use PHPUnit\Framework\Attributes\DataProvider;
17+
use PHPUnit\Framework\Attributes\RequiresFunction;
1718
use PHPUnit\Framework\TestCase;
1819

1920
class HashidsTest extends TestCase
@@ -317,9 +318,7 @@ public function testJsHashidsCompatible($salt, $minHashLength, $alphabet, $numbe
317318
$this->assertEquals($hash, $hashids->encode($numbers));
318319
}
319320

320-
/**
321-
* @requires function bcscale
322-
*/
321+
#[RequiresFunction('bcscale')]
323322
public function testBehaviourForDifferentBCMathAccuracy()
324323
{
325324
bcscale(2);

0 commit comments

Comments
 (0)