Skip to content

Commit

Permalink
Merge pull request #140 from open-source-contributions/test_enhancement
Browse files Browse the repository at this point in the history
Test enhancement
  • Loading branch information
oschwald committed Nov 13, 2019
2 parents 172ee19 + 14d822a commit 0dd0b0e
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -23,7 +23,7 @@ matrix:
- php: 'nightly'

before_install:
- composer install --dev -n --prefer-source
- composer install -n --prefer-source
- phpenv rehash
- "if [[ $RUN_SNYK && $SNYK_TOKEN ]]; then sudo apt-get install -y nodejs; npm install -g snyk; fi"

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -20,7 +20,7 @@
},
"require-dev": {
"friendsofphp/php-cs-fixer": "2.*",
"phpunit/phpunit": "4.* || 5.*",
"phpunit/phpunit": "^4.8.36 || 5.*",
"squizlabs/php_codesniffer": "3.*"
},
"autoload": {
Expand Down
3 changes: 2 additions & 1 deletion tests/GeoIp2/Test/Database/ReaderTest.php
Expand Up @@ -3,11 +3,12 @@
namespace GeoIp2\Test\Database;

use GeoIp2\Database\Reader;
use PHPUnit\Framework\TestCase;

/**
* @coversNothing
*/
class ReaderTest extends \PHPUnit_Framework_TestCase
class ReaderTest extends TestCase
{
public function databaseTypes()
{
Expand Down
5 changes: 3 additions & 2 deletions tests/GeoIp2/Test/Model/CountryTest.php
Expand Up @@ -3,11 +3,12 @@
namespace GeoIp2\Test\Model;

use GeoIp2\Model\Country;
use PHPUnit\Framework\TestCase;

/**
* @coversNothing
*/
class CountryTest extends \PHPUnit_Framework_TestCase
class CountryTest extends TestCase
{
private $raw = [
'continent' => [
Expand All @@ -34,7 +35,7 @@ class CountryTest extends \PHPUnit_Framework_TestCase

private $model;

public function setUp()
protected function setUp()
{
$this->model = new Country($this->raw, ['en']);
}
Expand Down
3 changes: 2 additions & 1 deletion tests/GeoIp2/Test/Model/InsightsTest.php
Expand Up @@ -3,11 +3,12 @@
namespace GeoIp2\Test\Model;

use GeoIp2\Model\Insights;
use PHPUnit\Framework\TestCase;

/**
* @coversNothing
*/
class InsightsTest extends \PHPUnit_Framework_TestCase
class InsightsTest extends TestCase
{
public function testFull()
{
Expand Down
3 changes: 2 additions & 1 deletion tests/GeoIp2/Test/Model/NameTest.php
Expand Up @@ -3,11 +3,12 @@
namespace GeoIp2\Test\Model;

use GeoIp2\Model\Country;
use PHPUnit\Framework\TestCase;

/**
* @coversNothing
*/
class NameTest extends \PHPUnit_Framework_TestCase
class NameTest extends TestCase
{
public $raw = [
'continent' => [
Expand Down
3 changes: 2 additions & 1 deletion tests/GeoIp2/Test/UtilTest.php
Expand Up @@ -3,11 +3,12 @@
namespace GeoIp2\Test;

use GeoIp2\Util;
use PHPUnit\Framework\TestCase;

/**
* @coversNothing
*/
class UtilTest extends \PHPUnit_Framework_TestCase
class UtilTest extends TestCase
{
public function testCidr()
{
Expand Down
3 changes: 2 additions & 1 deletion tests/GeoIp2/Test/WebService/ClientTest.php
Expand Up @@ -4,11 +4,12 @@

use Composer\CaBundle\CaBundle;
use MaxMind\WebService\Client as WsClient;
use PHPUnit\Framework\TestCase;

/**
* @coversNothing
*/
class ClientTest extends \PHPUnit_Framework_TestCase
class ClientTest extends TestCase
{
private $country = [
'continent' => [
Expand Down

0 comments on commit 0dd0b0e

Please sign in to comment.