PHP Classes

File: tests/distance/ConversionTest.php

Recommend this page to a friend!
  Classes of Joseluis Laso   jlaso GPS   tests/distance/ConversionTest.php   Download  
File: tests/distance/ConversionTest.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: jlaso GPS
Calculate the distance between geographic points
Author: By
Last change: Update of tests/distance/ConversionTest.php
Date: 4 months ago
Size: 227 bytes
 

Contents

Class file image Download
<?php
declare(strict_types=1);

use
JLaso\Gps\Tools;


class
ConversionTest extends PHPUnit_Framework_TestCase
{
    function
testKilometersMilesConversion()
    {
       
$this->assertEquals(0.621, Tools::toMiles(1));
    }

}