summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--composer.json175
-rw-r--r--php-yoast-phpunit-polyfills.spec16
2 files changed, 109 insertions, 82 deletions
diff --git a/composer.json b/composer.json
index 2af26d8..637e74a 100644
--- a/composer.json
+++ b/composer.json
@@ -1,76 +1,103 @@
{
- "name": "yoast/phpunit-polyfills",
- "description": "Set of polyfills for changed PHPUnit functionality to allow for creating PHPUnit cross-version compatible tests",
- "type": "library",
- "keywords": [ "phpunit", "polyfill", "testing" ],
- "license": "BSD-3-Clause",
- "homepage": "https://github.com/Yoast/PHPUnit-Polyfills",
- "authors": [
- {
- "name" : "Team Yoast",
- "email" : "support@yoast.com",
- "homepage": "https://yoast.com"
- },
- {
- "name" : "Contributors",
- "homepage": "https://github.com/Yoast/PHPUnit-Polyfills/graphs/contributors"
- }
- ],
- "support": {
- "issues": "https://github.com/Yoast/PHPUnit-Polyfills/issues",
- "source": "https://github.com/Yoast/PHPUnit-Polyfills"
- },
- "minimum-stability": "dev",
- "prefer-stable": true,
- "require": {
- "php": ">=5.4",
- "phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.0"
- },
- "require-dev": {
- "yoast/yoastcs": "^2.3.0"
- },
- "config": {
- "allow-plugins": {
- "dealerdirect/phpcodesniffer-composer-installer": true
- }
- },
- "autoload": {
- "files": ["phpunitpolyfills-autoload.php"]
- },
- "autoload-dev" : {
- "psr-4": {
- "Yoast\\PHPUnitPolyfills\\Tests\\": "tests/"
- }
- },
- "extra": {
- "branch-alias": {
- "dev-main": "2.x-dev"
- }
- },
- "scripts": {
- "lint7": [
- "@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --show-deprecated --exclude vendor --exclude .git --exclude src/Exceptions/Error.php --exclude src/Exceptions/TypeError.php --exclude tests/Polyfills/Fixtures/ValueObjectUnion.php --exclude tests/Polyfills/Fixtures/ValueObjectUnionNoReturnType.php"
- ],
- "lint-lt70": [
- "@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --show-deprecated --exclude vendor --exclude .git --exclude src/TestCases/TestCasePHPUnitGte8.php --exclude src/TestListeners/TestListenerDefaultImplementationPHPUnitGte7.php --exclude tests/Polyfills/Fixtures/ChildValueObject.php --exclude tests/Polyfills/Fixtures/ValueObject.php --exclude tests/Polyfills/Fixtures/ValueObjectUnion.php --exclude tests/Polyfills/Fixtures/ValueObjectUnionNoReturnType.php"
- ],
- "lint-gte80": [
- "@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --show-deprecated --exclude vendor --exclude .git"
- ],
- "check-cs": [
- "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs --runtime-set testVersion 5.4-"
- ],
- "fix-cs": [
- "@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf"
- ],
- "test": [
- "@php ./vendor/phpunit/phpunit/phpunit --no-coverage"
- ],
- "coverage": [
- "@php ./vendor/phpunit/phpunit/phpunit"
- ],
- "coverage-local": [
- "@php ./vendor/phpunit/phpunit/phpunit --coverage-html ./build/coverage-html"
- ]
- }
+ "name": "yoast/phpunit-polyfills",
+ "description": "Set of polyfills for changed PHPUnit functionality to allow for creating PHPUnit cross-version compatible tests",
+ "license": "BSD-3-Clause",
+ "type": "library",
+ "keywords": [
+ "phpunit",
+ "polyfill",
+ "testing"
+ ],
+ "authors": [
+ {
+ "name": "Team Yoast",
+ "email": "support@yoast.com",
+ "homepage": "https://yoast.com"
+ },
+ {
+ "name": "Contributors",
+ "homepage": "https://github.com/Yoast/PHPUnit-Polyfills/graphs/contributors"
+ }
+ ],
+ "homepage": "https://github.com/Yoast/PHPUnit-Polyfills",
+ "support": {
+ "issues": "https://github.com/Yoast/PHPUnit-Polyfills/issues",
+ "source": "https://github.com/Yoast/PHPUnit-Polyfills",
+ "security": "https://github.com/Yoast/PHPUnit-Polyfills/security/policy"
+ },
+ "require": {
+ "php": ">=5.4",
+ "phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.0"
+ },
+ "require-dev": {
+ "php-parallel-lint/php-console-highlighter": "^1.0.0",
+ "php-parallel-lint/php-parallel-lint": "^1.4.0",
+ "yoast/yoastcs": "^3.1.0"
+ },
+ "minimum-stability": "dev",
+ "prefer-stable": true,
+ "autoload": {
+ "files": [
+ "phpunitpolyfills-autoload.php"
+ ]
+ },
+ "autoload-dev": {
+ "psr-4": {
+ "Yoast\\PHPUnitPolyfills\\Tests\\": "tests/"
+ }
+ },
+ "config": {
+ "allow-plugins": {
+ "dealerdirect/phpcodesniffer-composer-installer": true
+ }
+ },
+ "extra": {
+ "branch-alias": {
+ "dev-main": "2.x-dev"
+ }
+ },
+ "scripts": {
+ "lint7": [
+ "@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --show-deprecated --exclude vendor --exclude .git --exclude src/Exceptions/Error.php --exclude src/Exceptions/TypeError.php --exclude tests/Polyfills/Fixtures/ValueObjectUnion.php --exclude tests/Polyfills/Fixtures/ValueObjectUnionNoReturnType.php"
+ ],
+ "lint70": [
+ "@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --show-deprecated --exclude vendor --exclude .git --exclude src/Exceptions/Error.php --exclude src/Exceptions/TypeError.php --exclude tests/Polyfills/Fixtures/ValueObject.php --exclude tests/Polyfills/Fixtures/ValueObjectUnion.php --exclude tests/Polyfills/Fixtures/ValueObjectUnionNoReturnType.php"
+ ],
+ "lint-lt70": [
+ "@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --show-deprecated --exclude vendor --exclude .git --exclude src/TestCases/TestCasePHPUnitGte8.php --exclude src/TestListeners/TestListenerDefaultImplementationPHPUnitGte7.php --exclude tests/Polyfills/Fixtures/ChildValueObject.php --exclude tests/Polyfills/Fixtures/ValueObject.php --exclude tests/Polyfills/Fixtures/ValueObjectUnion.php --exclude tests/Polyfills/Fixtures/ValueObjectUnionNoReturnType.php"
+ ],
+ "lint-gte80": [
+ "@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --show-deprecated --exclude vendor --exclude .git"
+ ],
+ "lint-gte84": [
+ "@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --show-deprecated --exclude vendor --exclude .git --exclude tests/Polyfills/Fixtures/ValueObjectNoReturnType.php"
+ ],
+ "check-cs": [
+ "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs --runtime-set testVersion 5.4-"
+ ],
+ "fix-cs": [
+ "@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf"
+ ],
+ "test": [
+ "@php ./vendor/phpunit/phpunit/phpunit --no-coverage"
+ ],
+ "coverage": [
+ "@php ./vendor/phpunit/phpunit/phpunit"
+ ],
+ "coverage-local": [
+ "@php ./vendor/phpunit/phpunit/phpunit --coverage-html ./build/coverage-html"
+ ]
+ },
+ "scripts-descriptions": {
+ "lint7": "Check the PHP files for parse errors. (PHP 7.1 - 7.4)",
+ "lint70": "Check the PHP files for parse errors. (PHP 7.0)",
+ "lint-lt70": "Check the PHP files for parse errors. (PHP < 7.0)",
+ "lint-gte80": "Check the PHP files for parse errors. (PHP 8.0 - 8.3)",
+ "lint-gte84": "Check the PHP files for parse errors. (PHP 8.4+)",
+ "check-cs": "Check the PHP files for code style violations and best practices.",
+ "fix-cs": "Auto-fix code style violations in the PHP files.",
+ "test": "Run the unit tests without code coverage.",
+ "coverage": "Run the unit tests with code coverage.",
+ "coverage-local": "Run the unit tests with code coverage writing an HTML coverage report to a \"/build/coverage-html\" directory."
+ }
}
diff --git a/php-yoast-phpunit-polyfills.spec b/php-yoast-phpunit-polyfills.spec
index a13f7dd..7660597 100644
--- a/php-yoast-phpunit-polyfills.spec
+++ b/php-yoast-phpunit-polyfills.spec
@@ -1,13 +1,13 @@
# remirepo/fedora spec file for php-yoast-phpunit-polyfills
#
-# Copyright (c) 2020-2023 Remi Collet
+# Copyright (c) 2020-2024 Remi Collet
# License: CC-BY-SA-4.0
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please preserve changelog entries
#
# Github
-%global gh_commit 3b59adeef77fb1c03ff5381dbb9d68b0aaff3171
+%global gh_commit a0f7d708794a738f328d7b6c94380fd1d6c40446
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner Yoast
%global gh_project PHPUnit-Polyfills
@@ -23,7 +23,7 @@
%global php_home %{_datadir}/php
Name: php-%{pk_vendor}-%{pk_project}%{major}
-Version: 1.0.5
+Version: 1.1.1
Release: 1%{?dist}
Summary: Set of polyfills for changed PHPUnit functionality
@@ -91,21 +91,18 @@ EOF
: Run upstream test suite
ret=0
-if [ -x %{_bindir}/phpunit ]; then
- %{_bindir}/phpunit --no-coverage || ret=1
-fi
if [ -x %{_bindir}/phpunit7 ]; then
%{_bindir}/phpunit7 --no-coverage || ret=1
fi
if [ -x %{_bindir}/phpunit8 ]; then
- for cmd in php php80 php81 php82; do
+ for cmd in php php81 php82 php83; do
if which $cmd; then
$cmd %{_bindir}/phpunit8 --no-coverage || ret=1
fi
done
fi
if [ -x %{_bindir}/phpunit9 ]; then
- for cmd in php php80 php81 php82; do
+ for cmd in php php81 php82 php83; do
if which $cmd; then
$cmd %{_bindir}/phpunit9 --no-coverage || ret=1
fi
@@ -126,6 +123,9 @@ exit $ret
%changelog
+* Tue Apr 9 2024 Remi Collet <remi@remirepo.net> - 1.1.1-1
+- update to 1.1.1
+
* Fri Mar 31 2023 Remi Collet <remi@remirepo.net> - 1.0.5-1
- update to 1.0.5