mirror of
https://github.com/Respect/Validation.git
synced 2024-05-29 11:52:34 +02:00
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:
parent
9a8cac06d7
commit
c7fcc09af6
|
@ -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"
|
||||
},
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue