fromString() public static method

The string is parsed by a regular expression for a known format of geographical coordinates.
public static fromString ( string $string, Ellipsoid $ellipsoid = null ) : Coordinate
$string string formatted geographical coordinate
$ellipsoid Location\Ellipsoid
return Location\Coordinate
コード例 #1
0
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testIfInvalidFormatThrowsException()
 {
     CoordinateFactory::fromString("Lorem ipsum dolor sit amet");
 }