From 29b8c86e4a9108f88bdbfd574552840a4b673e41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zoli=20Szab=C3=83=3F=C3=82=C2=B3?= Date: Sun, 21 Jan 2018 14:40:10 +0200 Subject: [PATCH] [CLEANUP] PHP-PDS directory structure: Tests -> tests Renamed "Tests" top-level directory to "tests" to match PHP-PDS recommendation. https://github.com/MyIntervals/emogrifier/issues/489 --- .github/CONTRIBUTING.md | 4 ++-- .travis.yml | 6 +++--- composer.json | 2 +- .../Emogrifier/HtmlProcessor/AbstractHtmlProcessorTest.php | 0 .../HtmlProcessor/Fixtures/TestingHtmlProcessor.php | 0 {Tests => tests}/Unit/EmogrifierTest.php | 0 6 files changed, 6 insertions(+), 6 deletions(-) rename {Tests => tests}/Unit/Emogrifier/HtmlProcessor/AbstractHtmlProcessorTest.php (100%) rename {Tests => tests}/Unit/Emogrifier/HtmlProcessor/Fixtures/TestingHtmlProcessor.php (100%) rename {Tests => tests}/Unit/EmogrifierTest.php (100%) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 4e4f45cc..5ce1f612 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -75,7 +75,7 @@ code coverage of the fixed bugs and the new features. To run the existing PHPUnit tests, run this command: ```shell -vendor/bin/phpunit Tests/ +vendor/bin/phpunit tests/ ``` @@ -89,7 +89,7 @@ We will only merge pull requests that follow the project's coding style. Please check your code with the provided PHP_CodeSniffer standard: ```shell -vendor/bin/phpcs --standard=Configuration/PhpCodeSniffer/Standards/Emogrifier/ src/ Tests/ +vendor/bin/phpcs --standard=Configuration/PhpCodeSniffer/Standards/Emogrifier/ src/ tests/ ``` Please make your code clean, well-readable and easy to understand. diff --git a/.travis.yml b/.travis.yml index ea577cc9..ded884f8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -43,14 +43,14 @@ script: - > echo; echo "Linting all PHP files"; - find src/ Tests/ -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l; + find src/ tests/ -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l; - > echo; echo "Running the unit tests"; - vendor/bin/phpunit Tests/; + vendor/bin/phpunit tests/; - > echo; echo "Running PHP_CodeSniffer"; - vendor/bin/phpcs --standard=Configuration/PhpCodeSniffer/Standards/Emogrifier/ src/ Tests/; + vendor/bin/phpcs --standard=Configuration/PhpCodeSniffer/Standards/Emogrifier/ src/ tests/; diff --git a/composer.json b/composer.json index d9c4b6f3..d0b95746 100644 --- a/composer.json +++ b/composer.json @@ -46,7 +46,7 @@ }, "autoload-dev": { "psr-4": { - "Pelago\\Tests\\": "Tests/" + "Pelago\\Tests\\": "tests/" } }, "extra": { diff --git a/Tests/Unit/Emogrifier/HtmlProcessor/AbstractHtmlProcessorTest.php b/tests/Unit/Emogrifier/HtmlProcessor/AbstractHtmlProcessorTest.php similarity index 100% rename from Tests/Unit/Emogrifier/HtmlProcessor/AbstractHtmlProcessorTest.php rename to tests/Unit/Emogrifier/HtmlProcessor/AbstractHtmlProcessorTest.php diff --git a/Tests/Unit/Emogrifier/HtmlProcessor/Fixtures/TestingHtmlProcessor.php b/tests/Unit/Emogrifier/HtmlProcessor/Fixtures/TestingHtmlProcessor.php similarity index 100% rename from Tests/Unit/Emogrifier/HtmlProcessor/Fixtures/TestingHtmlProcessor.php rename to tests/Unit/Emogrifier/HtmlProcessor/Fixtures/TestingHtmlProcessor.php diff --git a/Tests/Unit/EmogrifierTest.php b/tests/Unit/EmogrifierTest.php similarity index 100% rename from Tests/Unit/EmogrifierTest.php rename to tests/Unit/EmogrifierTest.php