PHP Class Location\CoordinateTest

Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: mjaschen/phpgeo

Protected Properties

Property Type Description
$coordinate Coordinate
$ellipsoid Ellipsoid

Public Methods

Method Description
testConstructorDefaultEllipsoid ( )
testConstructorInvalidLatitude ( )
testConstructorInvalidLatitudeOutOfBoundsWorksAsExpected ( )
testConstructorInvalidLongitude ( )
testConstructorInvalidLongitudeOutOfBoundsWorksAsExpected ( )
testFormat ( )
testGetEllipsoid ( )
testGetLat ( )
testGetLng ( )
testGetdistance ( )

Protected Methods

Method Description
setUp ( ) Sets up the fixture, for example, opens a network connection.
tearDown ( ) Tears down the fixture, for example, closes a network connection.

Method Details

setUp() protected method

This method is called before a test is executed.
protected setUp ( )

tearDown() protected method

This method is called after a test is executed.
protected tearDown ( )

testConstructorDefaultEllipsoid() public method

testConstructorInvalidLatitude() public method

testConstructorInvalidLatitudeOutOfBoundsWorksAsExpected() public method

testConstructorInvalidLongitude() public method

testConstructorInvalidLongitudeOutOfBoundsWorksAsExpected() public method

testFormat() public method

public testFormat ( )

testGetEllipsoid() public method

public testGetEllipsoid ( )

testGetLat() public method

public testGetLat ( )

testGetLng() public method

public testGetLng ( )

testGetdistance() public method

public testGetdistance ( )

Property Details

$coordinate protected_oe property

protected Coordinate,Location $coordinate
return Coordinate

$ellipsoid protected_oe property

protected Ellipsoid,Location $ellipsoid
return Ellipsoid