finally fixed serialization of conversions #189

This commit is contained in:
Nabeel Shahzad
2018-02-10 22:49:08 -06:00
parent 0700c96901
commit d5c2d25c74
6 changed files with 16 additions and 7 deletions

View File

@@ -9,9 +9,6 @@ class UtilsTest extends TestCase
public function testSecondsToTimeParts()
{
$t = new \PhpUnitsOfMeasure\PhysicalQuantity\Time(65, 'm');
echo $t->toUnit('hours');
$t = Utils::secondsToTimeParts(3600);
$this->assertEquals(['h' => 1, 'm' => 0, 's' => 0], $t);