File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,10 @@ jobs:
28
28
env : COMPOSER_OPTIONS="--prefer-lowest"
29
29
- stage : Code style and static analysis
30
30
script :
31
- - vendor/bin/phpstan analyse src test --level 7
31
+ - composer phpstan
32
32
env : PHPSTAN=true
33
33
- script :
34
- - vendor/bin/php- cs-fixer fix --verbose --diff --dry-run
34
+ - composer cs-check
35
35
env : CS-FIXER=true
36
36
- stage : coverage
37
37
script :
Original file line number Diff line number Diff line change 32
32
},
33
33
"require-dev" : {
34
34
"friendsofphp/php-cs-fixer" : " ^2.5" ,
35
- "phpstan/phpstan" : " ^0.8.5 " ,
35
+ "phpstan/phpstan" : " ^0.9.1 " ,
36
36
"phpunit/phpunit" : " ^6.0" ,
37
37
"scrutinizer/ocular" : " ^1.4" ,
38
38
"symfony/expression-language" : " ^3.0||^4.0"
47
47
"Sentry\\ SentryBundle\\ Test\\ " : " test"
48
48
}
49
49
},
50
+ "scripts" : {
51
+ "phpstan" : " vendor/bin/phpstan analyse src test --level 7 -c phpstan.neon" ,
52
+ "cs-check" : " vendor/bin/php-cs-fixer fix --verbose --diff --dry-run" ,
53
+ "cs-fix" : " vendor/bin/php-cs-fixer fix --verbose --diff"
54
+ },
50
55
"extra" : {
51
56
"branch-alias" : {
52
57
"master" : " 2.0.x-dev" ,
Original file line number Diff line number Diff line change @@ -350,8 +350,11 @@ public function test_that_it_sets_all_sentry_options()
350
350
$ this ->assertCount (self ::SUPPORTED_SENTRY_OPTIONS_COUNT , $ options );
351
351
$ defaultOptions = $ this ->getContainer ()->getParameter ('sentry.options ' );
352
352
foreach ($ options as $ name => $ value ) {
353
- $ this ->assertNotEquals ($ defaultOptions [$ name ], $ value ,
354
- 'Test precondition failed: using default value for ' . $ name );
353
+ $ this ->assertNotEquals (
354
+ $ defaultOptions [$ name ],
355
+ $ value ,
356
+ 'Test precondition failed: using default value for ' . $ name
357
+ );
355
358
}
356
359
357
360
$ container = $ this ->getContainer (['options ' => $ options ]);
You can’t perform that action at this time.
0 commit comments