Skip to content

Commit 143396a

Browse files
committed
DurationConverterTest coverage increased
1 parent 5ea5231 commit 143396a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/unit/Helper/DurationConverterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function shouldConvertDurationToMonthSuccessfully() : void
4747
{
4848
$duration = 'P0Y9M4DT1H5M0S';
4949
$expected = round( 9*30/365 + 4/365 + 1/365/60 + 5/365/60/60, 2);
50-
$result = DurationConverter::toYear($duration);
50+
$result = DurationConverter::toMonth($duration);
5151
$this->assertEquals($expected, $result);
5252
}
5353
}

0 commit comments

Comments
 (0)