This repository was archived by the owner on Nov 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Releasing 1.0.1
PHPUnit offers the possibility to use a `.dist` file for project configurations. Using that, will allow individual developers to overrule the project file with their own configuration which may, for instance, contain environment variables local to their system.
…config-file Build: rename the phpunit config file
- dep: standard autoinstaller
set project type to "phpcodesniffer-standard"
Require usage of elseif instead of else if
To use with Composer v2
$ vendor/bin/phpunit --filter CodeIgniter4
PHPUnit 6.5.14 by Sebastian Bergmann and contributors.
......... 9 / 9 (100%)
9 sniff test files generated 25 unique error codes; 22 were fixable (88%)
Time: 3.51 seconds, Memory: 30.00MB
OK (9 tests, 0 assertions)
Generating code coverage report in Clover XML format ... done
Generating code coverage report in HTML format ... done |
Tests on Travis fail
As ./vendor/squizlabs/php_codesniffer/phpcs.xml.dist
It seems we must update PHPUnit to version 9.3. https://travis-ci.org/github/codeigniter4/coding-standard/jobs/761060422 Your requirements could not be resolved to an installable set of packages.
Problem 1
- phpunit/phpunit[6.5.0, ..., 6.5.14] require php ^7.0 -> your php version (8.0.2) does not satisfy that requirement.
- Root composer.json requires phpunit/phpunit ^6.5 -> satisfiable by phpunit/phpunit[6.5.0, ..., 6.5.14]. |
PHP_CodeSniffer does not support PHPUnit 8 or later: |
php_codesniffer does not support phpunit 9.3 yet
@louisl Could you review this? |
@kenjis Thanks for the PR, I'll check it out ASAP. |
@louisl Thanks! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We can't run
composer install
with Composer v2.This PR fixes it.
Includes:
phpcodesniffer-composer-installer
for composer v2^7.0
vendor/squizlabs/php_codesniffer/phpcs.xml.dist
composer.lock
composer test
command