From b7770e570930bba4df5b6371fcc082725ea0416f Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Sat, 6 Jan 2018 17:18:30 -0600 Subject: [PATCH] field checks --- tests/AcarsTest.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/AcarsTest.php b/tests/AcarsTest.php index efdf72c5..52608eab 100644 --- a/tests/AcarsTest.php +++ b/tests/AcarsTest.php @@ -28,18 +28,16 @@ class AcarsTest extends TestCase $fields = array_merge([ 'name', 'order', - #'lat', - #'lon' + 'lat', + 'lon' ], $addtl_fields); $this->assertEquals(\count($route), \count($points)); foreach($route as $idx => $point) { - //$this->assertHasKeys($points[$idx], $fields); + $this->assertHasKeys($points[$idx], $fields); foreach($fields as $f) { if($f === 'lat' || $f === 'lon') { continue; - #$point[$f] = round($point[$f], 1); - #$points[$idx][$f] = round($points[$idx][$f], 1); } $this->assertEquals($point[$f], $points[$idx][$f]);