Skip to content
Permalink
Browse files

Test enhancement

  • Loading branch information
peter279k committed Nov 12, 2019
1 parent d36eded commit 14d822ab38453d46705928b17ba1ef4f30409c5e
@@ -24,6 +24,7 @@ return PhpCsFixer\Config::create()
'phpdoc_no_alias_tag' => false,
'phpdoc_order' => true,
'semicolon_after_instruction' => true,
'single_line_throw' => false,
'strict_comparison' => true,
'strict_param' => true,
'yoda_style' => false,
@@ -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"

@@ -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": {
@@ -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()
{
@@ -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' => [
@@ -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']);
}
@@ -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()
{
@@ -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' => [
@@ -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()
{
@@ -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' => [

0 comments on commit 14d822a

Please sign in to comment.
You can’t perform that action at this time.