Skip to content

Commit ed28f49

Browse files
authored
Make sure we use PHP7 and PHPunit 6 (#635)
* Make sure we use PHP7 and PHPunit 6 * Remove HHVM support * cs
1 parent 5c629f0 commit ed28f49

13 files changed

+27
-15
lines changed

Tests/Dumper/GeoArrayTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212

1313
use Geocoder\Dumper\GeoArray;
1414
use Geocoder\Model\LocationFactory;
15+
use PHPUnit\Framework\TestCase;
1516

1617
/**
1718
* @author Tomas Norkūnas <norkunas.tom@gmail.com>
1819
*/
19-
class GeoArrayTest extends \PHPUnit_Framework_TestCase
20+
class GeoArrayTest extends TestCase
2021
{
2122
/**
2223
* @var GeoArray

Tests/Dumper/GeoJsonTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@
1212

1313
use Geocoder\Dumper\GeoJson;
1414
use Geocoder\Model\LocationFactory;
15+
use PHPUnit\Framework\TestCase;
1516

1617
/**
1718
* @author Jan Sorgalla <jsorgalla@googlemail.com>
1819
* @author William Durand <william.durand1@gmail.com>
1920
*/
20-
class GeoJsonTest extends \PHPUnit_Framework_TestCase
21+
class GeoJsonTest extends TestCase
2122
{
2223
/**
2324
* @var GeoJson

Tests/Dumper/GpxTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
use Geocoder\Geocoder;
1414
use Geocoder\Dumper\Gpx;
1515
use Geocoder\Model\LocationFactory;
16+
use PHPUnit\Framework\TestCase;
1617

1718
/**
1819
* @author William Durand <william.durand1@gmail.com>
1920
*/
20-
class GpxTest extends \PHPUnit_Framework_TestCase
21+
class GpxTest extends TestCase
2122
{
2223
/**
2324
* @var Gpx

Tests/Dumper/KmlTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@
1212

1313
use Geocoder\Dumper\Kml;
1414
use Geocoder\Model\LocationFactory;
15+
use PHPUnit\Framework\TestCase;
1516

1617
/**
1718
* @author Jan Sorgalla <jsorgalla@googlemail.com>
1819
* @author William Durand <william.durand1@gmail.com>
1920
*/
20-
class KmlTest extends \PHPUnit_Framework_TestCase
21+
class KmlTest extends TestCase
2122
{
2223
/**
2324
* @var Kml

Tests/Dumper/WkbTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@
1212

1313
use Geocoder\Dumper\Wkb;
1414
use Geocoder\Model\LocationFactory;
15+
use PHPUnit\Framework\TestCase;
1516

1617
/**
1718
* @author Jan Sorgalla <jsorgalla@googlemail.com>
1819
* @author William Durand <william.durand1@gmail.com>
1920
*/
20-
class WkbTest extends \PHPUnit_Framework_TestCase
21+
class WkbTest extends TestCase
2122
{
2223
/**
2324
* @var Wkb

Tests/Dumper/WktTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@
1212

1313
use Geocoder\Dumper\Wkt;
1414
use Geocoder\Model\LocationFactory;
15+
use PHPUnit\Framework\TestCase;
1516

1617
/**
1718
* @author Jan Sorgalla <jsorgalla@googlemail.com>
1819
* @author William Durand <william.durand1@gmail.com>
1920
*/
20-
class WktTest extends \PHPUnit_Framework_TestCase
21+
class WktTest extends TestCase
2122
{
2223
/**
2324
* @var Wkt

Tests/Formatter/StringFormatterTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212

1313
use Geocoder\Formatter\StringFormatter;
1414
use Geocoder\Model\LocationFactory;
15+
use PHPUnit\Framework\TestCase;
1516

1617
/**
1718
* @author William Durand <william.durand1@gmail.com>
1819
*/
19-
class StringFormatterTest extends \PHPUnit_Framework_TestCase
20+
class StringFormatterTest extends TestCase
2021
{
2122
/**
2223
* @var StringFormatter

Tests/Model/AddressCollectionTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111
namespace Geocoder\Tests\Model;
1212

1313
use Geocoder\Model\AddressCollection;
14+
use PHPUnit\Framework\TestCase;
1415

1516
/**
1617
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
1718
*/
18-
class AddressCollectionTest extends \PHPUnit_Framework_TestCase
19+
class AddressCollectionTest extends TestCase
1920
{
2021
/**
2122
* @expectedException \Geocoder\Exception\CollectionIsEmpty

Tests/Model/AddressTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212

1313
use Geocoder\Model\Address;
1414
use Geocoder\Model\LocationFactory;
15+
use PHPUnit\Framework\TestCase;
1516

1617
/**
1718
* @author Antoine Lemaire <lemaireantoine@hotmail.com>
1819
*/
19-
class AddressTest extends \PHPUnit_Framework_TestCase
20+
class AddressTest extends TestCase
2021
{
2122
public function testDumpEmptyAddress()
2223
{

Tests/Model/LocationFactoryTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@
1313
use Geocoder\Model\AddressCollection;
1414
use Geocoder\Model\LocationFactory;
1515
use Geocoder\Location;
16+
use PHPUnit\Framework\TestCase;
1617

1718
/**
1819
* @author Antoine Corcy <contact@sbin.dk>
1920
* @author William Durand <william.durand1@gmail.com>
2021
*/
21-
class LocationFactoryTest extends \PHPUnit_Framework_TestCase
22+
class LocationFactoryTest extends TestCase
2223
{
2324
public function testCreateFromArray()
2425
{

0 commit comments

Comments
 (0)