Upgrade tests to PhpUnit 10 (#5252)

This commit is contained in:
Kevin Papst
2024-12-22 01:25:30 +01:00
committed by GitHub
parent 9bd37fb695
commit c7f0508707
377 changed files with 3308 additions and 3409 deletions

View File

@@ -22,10 +22,10 @@ class UtilTest extends TestCase
*/
public function testCalculateRate(int|float $hourlyRate, int $duration, int|float $expectedRate): void
{
$this->assertEquals($expectedRate, Util::calculateRate($hourlyRate, $duration));
self::assertEquals($expectedRate, Util::calculateRate($hourlyRate, $duration));
}
public function getRateCalculationData()
public static function getRateCalculationData()
{
yield [0, 0, 0];
yield [1, 100, 0.0278];