File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525 }
2626 ],
2727 "require" : {
28- "php" : " ^7.2" ,
28+ "php" : " ^7.2|^8.0 " ,
2929 "illuminate/contracts" : " ^6.0" ,
3030 "symfony/yaml" : " ^4.1" ,
3131 "justinrainbow/json-schema" : " ^5.2"
3232 },
3333 "require-dev" : {
34- "phpunit/phpunit" : " ^6.5" ,
34+ "phpunit/phpunit" : " ^6.5|^9.0 " ,
3535 "squizlabs/php_codesniffer" : " ^3.2"
3636 },
3737 "autoload" : {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class ValidationSystemTest extends TestCase
1515 */
1616 private $ defaultValidator ;
1717
18- protected function setUp ()
18+ protected function setUp (): void
1919 {
2020 if (!$ this ->defaultValidator ) {
2121 $ this ->defaultValidator = new DocumentValidator ();
@@ -24,7 +24,11 @@ protected function setUp()
2424
2525 public function testNonExistingSpecFileCausesLogicException ()
2626 {
27- $ this ->expectException (LogicException::class);
27+ if (preg_match ('/^8\./ ' , (string ) phpversion ())) {
28+ $ this ->expectError ();
29+ } else {
30+ $ this ->expectException (LogicException::class);
31+ }
2832 $ this ->expectExceptionMessageRegExp ('/The default schema file cannot be found/i ' );
2933
3034 new class extends DocumentValidator
You can’t perform that action at this time.
0 commit comments