Upgrade tests to PhpUnit 10 (#5252)
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user