Skip to content

Commit 8fa0095

Browse files
siwinskiremicollet
authored andcommitted
Allow PHPUnit 7 and 8
1 parent 9aaef32 commit 8fa0095

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.php_cs.cache
2+
.phpunit.result.cache
23
composer.lock
34
/vendor/
45
/phpcov/

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
},
2626
"require-dev": {
2727
"friendsofphp/php-cs-fixer": "^2.0",
28-
"phpdocumentor/phpdocumentor": "*",
29-
"phpunit/phpunit": "^4.8.35 || ^5.7.11 || ^6.0.5",
28+
"phpunit/phpunit": "^4.8.35 || ^5.7.11 || ^6.0.5 || ^7 || ^8",
3029
"theseer/autoload": "^1.22"
3130
},
3231
"autoload": {

tests/DependenciesTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,13 @@ public function testOptionalExists()
106106
$this->assertTrue(class_exists('Foo\\Bar\\Baz'));
107107
}
108108

109+
/**
110+
* Just testing that no error/exception is thrown here
111+
*/
109112
public function testOptionalNotExists()
110113
{
111114
Dependencies::optional(array(__DIR__.'/fixtures/DoesNotExist.php'));
115+
$this->assertTrue(true);
112116
}
113117

114118
public function testOptionalFirstExists()

0 commit comments

Comments
 (0)