Upgrade PHPUnit version to 8.5.2

This commit is contained in:
gridnev 2020-02-13 16:27:05 +03:00
parent 4ea4911a4d
commit f2d461f3d2
16 changed files with 29 additions and 18 deletions

View File

@ -5,8 +5,6 @@ install:
- mkdir -p build/logs
php:
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4

View File

@ -6,7 +6,7 @@
"php": "^7.0.0"
},
"require-dev": {
"phpunit/phpunit": "^5.5.4",
"phpunit/phpunit": "^8.5.2",
"satooshi/php-coveralls": "^1.0.1",
"codacy/coverage": "^1.0.3"
},

View File

@ -4,7 +4,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/5.5/phpunit.xsd"
bootstrap="./vendor/autoload.php"
colors="auto"
colors="true"
>
<testsuites>

View File

@ -5,8 +5,9 @@ namespace bkrukowski\TransparentEmail\Tests\Emails;
use bkrukowski\TransparentEmail\Emails\EditableEmail;
use bkrukowski\TransparentEmail\Emails\Email;
use bkrukowski\TransparentEmail\Emails\EmailInterface;
use PHPUnit\Framework\TestCase;
class EditableEmailTest extends \PHPUnit_Framework_TestCase
class EditableEmailTest extends TestCase
{
/**
* @dataProvider providerRemoveFromLocalPart
@ -19,7 +20,7 @@ class EditableEmailTest extends \PHPUnit_Framework_TestCase
$editable = new EditableEmail($email);
$new = $editable->removeFromLocalPart($toRemove);
$this->assertNotSame($editable, $new);
$this->assertNotContains((string) $new, $toRemove);
$this->assertStringNotContainsString((string) $new, $toRemove);
$this->assertSame($email->getDomain(), $new->getDomain());
}

View File

@ -6,8 +6,9 @@ namespace bkrukowski\TransparentEmail\Tests\Emails;
use bkrukowski\TransparentEmail\Emails\Email;
use bkrukowski\TransparentEmail\Emails\InvalidEmailException;
use PHPUnit\Framework\TestCase;
class EmailTest extends \PHPUnit_Framework_TestCase
class EmailTest extends TestCase
{
/**
* @dataProvider providerConstructor

View File

@ -6,8 +6,9 @@ namespace bkrukowski\TransparentEmail\Tests;
use bkrukowski\TransparentEmail\ServiceCollector;
use bkrukowski\TransparentEmail\Services\ServiceInterface;
use PHPUnit\Framework\TestCase;
class ServiceCollectorTest extends \PHPUnit_Framework_TestCase
class ServiceCollectorTest extends TestCase
{
public function testAddService()
{

View File

@ -6,8 +6,9 @@ namespace bkrukowski\TransparentEmail\Tests\Services;
use bkrukowski\TransparentEmail\Emails\Email;
use bkrukowski\TransparentEmail\Services\AppsGoogleCom;
use PHPUnit\Framework\TestCase;
class AppsGoogleComTest extends \PHPUnit_Framework_TestCase
class AppsGoogleComTest extends TestCase
{
/**
* @dataProvider providerIsSupported

View File

@ -6,8 +6,9 @@ namespace bkrukowski\TransparentEmail\Tests\Services;
use bkrukowski\TransparentEmail\Emails\Email;
use bkrukowski\TransparentEmail\Services\GmailCom;
use PHPUnit\Framework\TestCase;
class GmailComTest extends \PHPUnit_Framework_TestCase
class GmailComTest extends TestCase
{
/**
* @dataProvider providerGetPrimaryEmail

View File

@ -6,8 +6,9 @@ namespace bkrukowski\TransparentEmail\Tests\Services;
use bkrukowski\TransparentEmail\Emails\Email;
use bkrukowski\TransparentEmail\Services\MailRU;
use PHPUnit\Framework\TestCase;
class MailRUTest extends \PHPUnit_Framework_TestCase
class MailRUTest extends TestCase
{
/**
* @dataProvider providerGetPrimaryEmail

View File

@ -6,8 +6,9 @@ namespace bkrukowski\TransparentEmail\Tests\Services;
use bkrukowski\TransparentEmail\Emails\Email;
use bkrukowski\TransparentEmail\Services\MultiDomain;
use PHPUnit\Framework\TestCase;
class MultiDomainTest extends \PHPUnit_Framework_TestCase
class MultiDomainTest extends TestCase
{
/**
* @dataProvider providerIsSupported

View File

@ -6,8 +6,9 @@ namespace bkrukowski\TransparentEmail\Tests\Services;
use bkrukowski\TransparentEmail\Emails\Email;
use bkrukowski\TransparentEmail\Services\OutlookCom;
use PHPUnit\Framework\TestCase;
class OutlookComTest extends \PHPUnit_Framework_TestCase
class OutlookComTest extends TestCase
{
/**
* @dataProvider providerIsSupported

View File

@ -6,8 +6,9 @@ namespace bkrukowski\TransparentEmail\Tests\Services;
use bkrukowski\TransparentEmail\Emails\Email;
use bkrukowski\TransparentEmail\Services\Www33MailCom;
use PHPUnit\Framework\TestCase;
class Www33MailComTest extends \PHPUnit_Framework_TestCase
class Www33MailComTest extends TestCase
{
/**
* @dataProvider providerIsSupported

View File

@ -6,8 +6,9 @@ namespace bkrukowski\TransparentEmail\Tests\Services;
use bkrukowski\TransparentEmail\Emails\Email;
use bkrukowski\TransparentEmail\Services\YahooCom;
use PHPUnit\Framework\TestCase;
class YahooComTest extends \PHPUnit_Framework_TestCase
class YahooComTest extends TestCase
{
/**
* @dataProvider providerIsSupported

View File

@ -6,8 +6,9 @@ namespace bkrukowski\TransparentEmail\Tests\Services;
use bkrukowski\TransparentEmail\Emails\Email;
use bkrukowski\TransparentEmail\Services\YandexRu;
use PHPUnit\Framework\TestCase;
class YandexRuTest extends \PHPUnit_Framework_TestCase
class YandexRuTest extends TestCase
{
/**
* @dataProvider providerGetPrimaryEmail

View File

@ -7,8 +7,9 @@ namespace bkrukowski\TransparentEmail\Tests;
use bkrukowski\TransparentEmail\Emails\Email;
use bkrukowski\TransparentEmail\Emails\EmailInterface;
use bkrukowski\TransparentEmail\TransparentEmailFactory;
use PHPUnit\Framework\TestCase;
class TransparentEmailFactoryTest extends \PHPUnit_Framework_TestCase
class TransparentEmailFactoryTest extends TestCase
{
/**
* @dataProvider providerExpectedEmail

View File

@ -11,8 +11,9 @@ use bkrukowski\TransparentEmail\ServiceCollectorInterface;
use bkrukowski\TransparentEmail\Services\TlenPl;
use bkrukowski\TransparentEmail\TransparentEmail;
use bkrukowski\TransparentEmail\TransparentEmailFactory;
use PHPUnit\Framework\TestCase;
class TransparentEmailTest extends \PHPUnit_Framework_TestCase
class TransparentEmailTest extends TestCase
{
/**
* @dataProvider providerGetPrimaryEmail