Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Renamed to GpsPoint
Browse files Browse the repository at this point in the history
  • Loading branch information
zf2timo authored and weierophinney committed Jul 16, 2015
1 parent 05f1c29 commit 66addd4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/GPSPoint.php → src/GpsPoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace Zend\Validator;

final class GPSPoint extends AbstractValidator
final class GpsPoint extends AbstractValidator
{

const OUT_OF_BOUNDS = 'gpsPointOutOfBounds';
Expand Down Expand Up @@ -39,7 +39,7 @@ final class GPSPoint extends AbstractValidator
public function isValid($value)
{
if (strpos($value, ',') === false) {
$this->error(GPSPoint::INCOMPLETE_COORDINATE, $value);
$this->error(GpsPoint::INCOMPLETE_COORDINATE, $value);
return false;
}

Expand Down
12 changes: 6 additions & 6 deletions test/GPSPointTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace ZendTest\Validator;

use Zend\Validator\GPSPoint;
use Zend\Validator\GpsPoint;


/**
Expand All @@ -19,13 +19,13 @@ class GPSPointTest extends \PHPUnit_Framework_TestCase
{

/**
* @var GPSPoint
* @var GpsPoint
*/
protected $validator;

public function setUp()
{
$this->validator = new GPSPoint();
$this->validator = new GpsPoint();
}


Expand Down Expand Up @@ -75,9 +75,9 @@ public function basicDataProvider()
public function ErrorMessageTestValues()
{
return [
['63 47 24.691 N, 18 2 54.363 W', GPSPoint::OUT_OF_BOUNDS, '63 47 24.691 N'],
['° \' " N,° \' " E', GPSPoint::CONVERT_ERROR, '° \' " N'],
['° \' " N', GPSPoint::INCOMPLETE_COORDINATE, '° \' " N'],
['63 47 24.691 N, 18 2 54.363 W', GpsPoint::OUT_OF_BOUNDS, '63 47 24.691 N'],
['° \' " N,° \' " E', GpsPoint::CONVERT_ERROR, '° \' " N'],
['° \' " N', GpsPoint::INCOMPLETE_COORDINATE, '° \' " N'],
];
}
}

0 comments on commit 66addd4

Please sign in to comment.