Skip to content

Commit a875469

Browse files
committed
Do not report useless tests
1 parent 85f7e58 commit a875469

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ jobs:
4646
script:
4747
# For PHP 8.1+, we need to ignore the config file so that PHPUnit 7 doesn't try to read it and cause an error.
4848
# Instead, we pass all required settings as part of the phpunit command.
49-
- vendor/bin/phpunit --no-configuration --bootstrap=tests/bootstrap.php tests/AllSniffs.php
50-
- vendor/bin/phpunit --no-configuration --bootstrap=tests/bootstrap.php tests/FixtureTests.php
49+
- vendor/bin/phpunit --no-configuration --bootstrap=tests/bootstrap.php --dont-report-useless-tests tests/AllSniffs.php
50+
- vendor/bin/phpunit --no-configuration --bootstrap=tests/bootstrap.php --dont-report-useless-tests tests/FixtureTests.php
5151
- language: node_js
5252
node_js: 10
5353
install:

phpunit.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<phpunit
2+
beStrictAboutTestsThatDoNotTestAnything="false"
23
bootstrap="tests/bootstrap.php"
34
colors="true"
45
convertErrorsToExceptions="true"

tests/AllSniffs.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public static function main() {
4242
public static function suite() {
4343
$GLOBALS['PHP_CODESNIFFER_SNIFF_CODES'] = array();
4444
$GLOBALS['PHP_CODESNIFFER_FIXABLE_CODES'] = array();
45+
$GLOBALS['PHP_CODESNIFFER_SNIFF_CASE_FILES'] = array();
4546

4647
$suite = new TestSuite( 'HM Standards' );
4748

0 commit comments

Comments
 (0)