Ejemplo n.º 1
0
 /**
  * Data provider to provide test values for each property of the object.
  *
  * @return array An array, each element an array containing a property name and a test value.
  */
 public static function getPropertyNamesAndTestValues()
 {
     $datumFactory = new DatumFactory(new EllipsoidFactory(), new HelmertTransformFactory());
     return array(array('latitude', 51.88328), array('longitude', -3.43684), array('height', 886), array('datum', $datumFactory->createDefault()));
 }
Ejemplo n.º 2
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     $datumFactory = new DatumFactory(new EllipsoidFactory(), new HelmertTransformFactory());
     $this->datum = $datumFactory->createDefault();
 }
 /**
  * Data provider to provide test values for each property of the object.
  *
  * @return array An array, each element an array containing a property name and a test value.
  */
 public static function getPropertyNamesAndTestValues()
 {
     $datumFactory = new DatumFactory(new EllipsoidFactory(), new HelmertTransformFactory());
     return array(array('x', 123.4), array('y', 456.7), array('z', 789.1), array('datum', $datumFactory->createDefault()));
 }