Upgrade PHPUnit version

The changes you see in this commit had to be made due to the upgrade of
PHPunit version.

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
This commit is contained in:
Henrique Moody 2018-08-22 23:25:46 +02:00
parent 9a8cac06d7
commit c7fcc09af6
No known key found for this signature in database
GPG key ID: 221E9281655813A6
4 changed files with 6 additions and 7 deletions

View file

@ -22,7 +22,7 @@
"malukenho/docheader": "^0.1.4",
"mikey179/vfsStream": "^1.6",
"phpstan/phpstan": "^0.10.3",
"phpunit/phpunit": "^6.4",
"phpunit/phpunit": "^7.3",
"symfony/validator": "^3.0||^4.0",
"zendframework/zend-validator": "^2.0"
},

View file

@ -7,8 +7,7 @@
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
verbose="false">
verbose="true">
<testsuites>
<testsuite name="unit">
<directory suffix="Test.php">tests/unit/</directory>

View file

@ -29,7 +29,7 @@ class NestedValidationExceptionTest extends TestCase
$node = new IntValException('input', 'id', [], 'trim');
$composite->addChild($node);
self::assertCount(1, $composite->getChildren(true));
self::assertContainsOnly($node, $composite->getChildren());
self::assertContainsOnly(IntValException::class, $composite->getChildren());
}
/**
@ -43,6 +43,6 @@ class NestedValidationExceptionTest extends TestCase
$composite->addChild($node);
$composite->addChild($node);
self::assertCount(1, $composite->getChildren(true));
self::assertContainsOnly($node, $composite->getChildren());
self::assertContainsOnly(IntValException::class, $composite->getChildren());
}
}

View file

@ -26,10 +26,10 @@ class MimetypeTest extends TestCase
{
private $filename;
protected function setUp()
protected function setUp(): void
{
if (defined('HHVM_VERSION')) {
return self::markTestSkipped('If you are a HHVM user, and you are in the mood, please fix it');
self::markTestSkipped('If you are a HHVM user, and you are in the mood, please fix it');
}
$this->filename = sprintf('%s/validation.txt', sys_get_temp_dir());