PHP Classes

File: tests/GeoZipCodeTest.php

Recommend this page to a friend!
  Classes of Johnny Mast   Redbox PHP Distance   tests/GeoZipCodeTest.php   Download  
File: tests/GeoZipCodeTest.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: Redbox PHP Distance
Compute the distance between locations or zipcodes
Author: By
Last change:
Date: 8 years ago
Size: 515 bytes
 

Contents

Class file image Download
<?php
namespace Redbox\Distance\Tests;
use
Redbox\Distance;

/**
 * @package Redbox\Distance\Tests
 * @coversDefaultClass \Redbox\Distance\GeoZipCode
 */
class GeoZipCode extends \PHPUnit_Framework_TestCase
{
   
/**
     * This test will make sure that getLat() on the GeoPoint
     * returns the constructed latitude.
     */
   
public function test_tostring_returns_the_constructed_zipcode()
    {
       
$GeoZip = new Distance\GeoZipCode('CA 94105');
       
$this->assertEquals($GeoZip, 'CA 94105');
    }
}