File tree Expand file tree Collapse file tree 4 files changed +5
-10
lines changed Expand file tree Collapse file tree 4 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 9
9
10
10
env :
11
11
global :
12
- - CHECKS =1
12
+ - DEFAULT =1
13
13
14
14
matrix :
15
15
include :
@@ -21,11 +21,9 @@ matrix:
21
21
before_script :
22
22
- composer install --prefer-dist --no-interaction
23
23
24
- - if [[ $CHECKS != 1 ]]; then composer require --dev phpunit/phpunit:"^6.0"; fi
24
+ - if [[ $CHECKS != 1 ]]; then composer require --dev phpunit/phpunit:"^5.0|^ 6.0"; fi
25
25
26
26
script :
27
- - if [[ $DEFAULT == 1 ]]; then vendor/bin/phpunit; fi
28
-
29
27
- if [[ $CHECKS == 1 ]]; then composer phpstan-setup && composer phpstan ; fi
30
28
- if [[ $CHECKS == 1 ]]; then composer cs-check ; fi
31
29
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public static function psr2rSuite() {
47
47
$ GLOBALS ['PHP_CODESNIFFER_SNIFF_CODES ' ] = [];
48
48
$ GLOBALS ['PHP_CODESNIFFER_FIXABLE_CODES ' ] = [];
49
49
50
- $ suite = new PHPUnit_Framework_TestSuite ('PHP PSR2R Standards ' );
50
+ $ suite = new TestSuite ('PHP PSR2R Standards ' );
51
51
$ toolFile = $ GLOBALS ['finder ' ]->findFile (AbstractSniff::class);
52
52
$ standardDir = dirname (dirname (realpath ($ toolFile )));
53
53
$ testsDir = __DIR__ . DIRECTORY_SEPARATOR . 'PSR2R ' . DIRECTORY_SEPARATOR . 'Tests ' . DIRECTORY_SEPARATOR ;
Original file line number Diff line number Diff line change 2
2
3
3
namespace PSR2R \Tests \Commenting ;
4
4
5
+ use PHPUnit \Framework \TestCase ;
5
6
use PSR2R \Sniffs \Commenting \FullyQualifiedClassNameInDocBlockSniff ;
6
7
7
- /**
8
- */
9
- class FullyQualifiedClassNameInDocBlockSniffTest extends \PHPUnit_Framework_TestCase {
8
+ class FullyQualifiedClassNameInDocBlockSniffTest extends TestCase {
10
9
11
10
/**
12
11
* @return void
Original file line number Diff line number Diff line change 4
4
5
5
use PHP_CodeSniffer \Tests \Standards \AbstractSniffUnitTest ;
6
6
7
- /**
8
- */
9
7
class FullyQualifiedClassNameInDocBlockUnitTest extends AbstractSniffUnitTest {
10
8
11
9
/**
You can’t perform that action at this time.
0 commit comments