Skip to content

Commit

Permalink
Support PHP 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dragosprotung committed Dec 15, 2016
1 parent caa84a2 commit 43f6826
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -8,6 +8,7 @@ php:
- 5.5
- 5.6
- 7.0
- 7.1
- hhvm

env:
Expand Down
8 changes: 6 additions & 2 deletions tests/CrEOF/Spatial/Tests/DBAL/Types/GeographyTypeTest.php
Expand Up @@ -23,7 +23,6 @@

namespace CrEOF\Spatial\Tests\DBAL\Types;

use Doctrine\ORM\Query;
use CrEOF\Spatial\PHP\Types\Geography\LineString;
use CrEOF\Spatial\PHP\Types\Geography\Point;
use CrEOF\Spatial\PHP\Types\Geography\Polygon;
Expand Down Expand Up @@ -138,7 +137,12 @@ public function testBadGeographyValue()
try {
$entity->setGeography('POINT(0 0)');
} catch (\TypeError $exception) {
throw new \PHPUnit_Framework_Error($exception->getMessage(), $exception->getCode());
throw new \PHPUnit_Framework_Error(
$exception->getMessage(),
$exception->getCode(),
$exception->getFile(),
$exception->getLine()
);
}
}
}

0 comments on commit 43f6826

Please sign in to comment.