finally fixed serialization of conversions #189
This commit is contained in:
@@ -134,7 +134,7 @@ class AcarsTest extends TestCase
|
||||
$this->assertEquals('custom_field', $pirep['fields'][0]['name']);
|
||||
$this->assertEquals('custom_value', $pirep['fields'][0]['value']);
|
||||
|
||||
$this->assertHasKeys($pirep['distance'], ['mi', 'nmi', 'km']);
|
||||
$this->assertHasKeys($pirep['planned_distance'], ['mi', 'nmi', 'km']);
|
||||
|
||||
/**
|
||||
* Update the custom field
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user