From 2b6af5c3345c62cd63c318f2307fa1bbc6c9f737 Mon Sep 17 00:00:00 2001 From: rxu Date: Tue, 14 Jul 2020 20:20:53 +0700 Subject: [PATCH] [ticket/16549] rename lint_test.php As of PHPUnit 9.1, test filename should match test class name. PHPBB3-16549 --- .travis.yml | 2 +- phpunit.xml.dist | 4 ++-- tests/{lint_test.php => phpbb_lint_test.php} | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename tests/{lint_test.php => phpbb_lint_test.php} (100%) diff --git a/.travis.yml b/.travis.yml index c855e6f352..e8b5d3fcfc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -51,7 +51,7 @@ script: - travis/check-image-icc-profiles.sh $DB $TRAVIS_PHP_VERSION $NOTESTS - travis/check-executable-files.sh $DB $TRAVIS_PHP_VERSION $NOTESTS ./ - travis/check-stylesheet.sh $NOTESTS - - sh -c "if [ '$SLOWTESTS' != '1' -a '$DB' = 'mysqli' ]; then phpBB/vendor/bin/phpunit tests/lint_test.php; fi" + - sh -c "if [ '$SLOWTESTS' != '1' -a '$DB' = 'mysqli' ]; then phpBB/vendor/bin/phpunit tests/phpbb_lint_test.php; fi" - sh -c "if [ '$NOTESTS' != '1' -a '$SLOWTESTS' != '1' ]; then phpBB/vendor/bin/phpunit --configuration travis/phpunit-$DB-travis.xml --verbose --stop-on-error; fi" - sh -c "if [ '$SLOWTESTS' = '1' ]; then phpBB/vendor/bin/phpunit --configuration travis/phpunit-$DB-travis.xml --group slow; fi" - sh -c "set -x;if [ '$NOTESTS' = '1' -a '$TRAVIS_PULL_REQUEST' != 'false' ]; then git remote set-branches --add origin $TRAVIS_BRANCH && git fetch && git-tools/commit-msg-hook-range.sh origin/$TRAVIS_BRANCH..$TRAVIS_PULL_REQUEST_SHA; fi" diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 6888fe0357..642537e50d 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -14,13 +14,13 @@ ./tests ./tests/functional - ./tests/lint_test.php + ./tests/phpbb_lint_test.php ./tests/functional - ./tests/lint_test.php + ./tests/phpbb_lint_test.php diff --git a/tests/lint_test.php b/tests/phpbb_lint_test.php similarity index 100% rename from tests/lint_test.php rename to tests/phpbb_lint_test.php