Skip to content

Commit 541e0d8

Browse files
authored
Merge pull request #190 from phpcr/phpunit-version
allow phpunit 6 and 7
2 parents 7d260c1 + 7ddb62c commit 541e0d8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"require": {
3030
"php": "^5.6|^7.0",
3131
"phpcr/phpcr-implementation": "2.1.*",
32-
"phpunit/phpunit": "^5.7"
32+
"phpunit/phpunit": "^5.7 || ^6.4 || ^7.0"
3333
},
3434
"autoload": {
3535
"psr-4": {

inc/AbstractLoader.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use PHPCR\RepositoryFactoryInterface;
1818
use PHPCR\RepositoryInterface;
1919
use PHPCR\SessionInterface;
20-
use PHPUnit_Framework_SkippedTestSuiteError;
20+
use PHPUnit\Framework\SkippedTestSuiteError;
2121

2222
/**
2323
* Base class for the bootstrapping to load your phpcr implementation for the
@@ -216,7 +216,7 @@ public function getAdditionalSession($credentials = false)
216216
*
217217
* @return SessionInterface
218218
*
219-
* @throws PHPUnit_Framework_SkippedTestSuiteError to make whole test
219+
* @throws SkippedTestSuiteError to make whole test
220220
* suite skip if implementation does not support updating the
221221
* properties automatically.
222222
*/
@@ -226,7 +226,7 @@ public function getSessionWithLastModified()
226226
return $this->getSession();
227227
}
228228

229-
throw new PHPUnit_Framework_SkippedTestSuiteError('Not supported');
229+
throw new SkippedTestSuiteError('Not supported');
230230
}
231231

232232
/**

inc/BaseCase.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use PHPCR\SessionInterface;
1919
use PHPCR\NodeInterface;
2020
use DateTime;
21-
use PHPUnit_Framework_SkippedTestSuiteError;
21+
use PHPUnit\Framework\SkippedTestSuiteError;
2222
use PHPUnit\Framework\TestCase;
2323

2424
/**
@@ -104,7 +104,7 @@ public static function setupBeforeClass($fixtures = 'general/base')
104104
list($phpcr, $tests, $chapter, $case) = explode('\\', $fqn);
105105
$case = "$chapter\\$case";
106106
if (!self::$loader->getTestSupported($chapter, $case, null)) {
107-
throw new PHPUnit_Framework_SkippedTestSuiteError('Test case not supported by this implementation');
107+
throw new SkippedTestSuiteError('Test case not supported by this implementation');
108108
}
109109

110110
self::$staticSharedFixture = [];

0 commit comments

Comments
 (0)