diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..12bc4cd --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,12 @@ +# These are supported funding model platforms + +github: mnapoli # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] +patreon: # Replace with a single Patreon username +open_collective: # Replace with a single Open Collective username +ko_fi: # Replace with a single Ko-fi username +tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel +community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry +liberapay: # Replace with a single Liberapay username +issuehunt: # Replace with a single IssueHunt username +otechie: # Replace with a single Otechie username +custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/.gitignore b/.gitignore index c9587d2..ae622c7 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /composer.phar /composer.lock /demo +.phpunit.result.cache diff --git a/composer.json b/composer.json index cbd22aa..cf8d9be 100644 --- a/composer.json +++ b/composer.json @@ -15,14 +15,19 @@ } }, "require": { - "php": "^7.2", + "php": ">=7.2", "ext-json": "*", - "psr/log": "^1.1" + "psr/log": "^1.1 | ^2.0 | ^3.0" }, "require-dev": { - "phpunit/phpunit": "^8.0", - "mnapoli/hard-mode": "^0.1.1", + "phpunit/phpunit": "^9.5", + "mnapoli/hard-mode": "^0.3.0", "mnapoli/pretty": "^1.0", - "phpstan/phpstan": "^0.11.2" + "phpstan/phpstan": "^1.0" + }, + "config": { + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": false + } } } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 8b3119c..d50c461 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,17 +1,13 @@ - - - - - ./tests/ - - - - - - src - - - + + + + src + + + + + ./tests/ + + diff --git a/tests/StderrLoggerTest.php b/tests/StderrLoggerTest.php index 4555b70..eb3ff8a 100644 --- a/tests/StderrLoggerTest.php +++ b/tests/StderrLoggerTest.php @@ -43,7 +43,7 @@ public function test log messages to stderr() [EMERGENCY] Emergency LOGS -); + ); } public function test logs above the configured log level()