We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ea5231 commit 143396aCopy full SHA for 143396a
1 file changed
tests/unit/Helper/DurationConverterTest.php
@@ -47,7 +47,7 @@ public function shouldConvertDurationToMonthSuccessfully() : void
47
{
48
$duration = 'P0Y9M4DT1H5M0S';
49
$expected = round( 9*30/365 + 4/365 + 1/365/60 + 5/365/60/60, 2);
50
- $result = DurationConverter::toYear($duration);
+ $result = DurationConverter::toMonth($duration);
51
$this->assertEquals($expected, $result);
52
}
53
0 commit comments