diff --git a/.github/workflows/build-test-measure.yml b/.github/workflows/build-test-measure.yml
index a11c7ceb3..b5c4a510a 100644
--- a/.github/workflows/build-test-measure.yml
+++ b/.github/workflows/build-test-measure.yml
@@ -208,6 +208,8 @@ jobs:
if: needs.pre-run.outputs.changed-file-count > 0
env:
WP_CORE_DIR: /tmp/wordpress
+ WP_TESTS_DIR: /tmp/wordpress-tests-lib
+ WP_ENVIRONMENT_TYPE: local
services:
mysql:
image: mariadb:latest
@@ -226,31 +228,42 @@ jobs:
coverage: [false]
php: ['7.3', '7.2', '7.1']
wp: ['latest']
+ phpunit: ['7']
include:
- - php: '8.0'
+ - php: '8.3'
wp: 'trunk'
- experimental: true
coverage: false
+ phpunit: '9.6'
+
+ - php: '8.2'
+ wp: 'trunk'
+ coverage: false
+ phpunit: '9.6'
+
+ - php: '8.1'
+ wp: 'latest'
+ coverage: false
+ phpunit: '9.6'
+
+ - php: '8.0'
+ wp: 'latest'
+ coverage: false
+ phpunit: '9.3'
- php: '7.4'
wp: 'latest'
coverage: false
+ phpunit: '9.3'
- php: '7.4'
wp: 'latest'
coverage: true
+ phpunit: '9.3'
- php: '7.0'
- wp: '5.1'
- coverage: false
-
- - php: '5.6'
- wp: '5.0'
- coverage: false
-
- - php: '5.6'
- wp: '4.9'
+ wp: '6.3'
coverage: false
+ phpunit: '6'
steps:
- name: Checkout
@@ -261,8 +274,8 @@ jobs:
with:
php-version: ${{ matrix.php }}
extensions: curl, date, dom, gd, iconv, json, libxml, mysql, spl
- coverage: ${{ matrix.coverage && 'pcov' || 'none' }}
- ini-values: pcov.directory=.
+ coverage: ${{ matrix.coverage && 'xdebug' || 'none' }}
+ tools: phpunit:${{ matrix.phpunit }}
- name: Shutdown default MySQL service
run: sudo service mysql stop
@@ -302,6 +315,13 @@ jobs:
- name: Build plugin
run: npm run build
+ # Avoid conflicts with globally installed PHPUnit.
+ - name: Remove locally installed PHPUnit
+ if: needs.pre-run.outputs.changed-php-count > 0
+ run: |
+ rm -rf vendor/phpunit
+ composer dump-autoload -o
+
# Scan the logs for failing tests and surface that information by creating annotations and log file decorations.
- name: Setup problem matcher to provide annotations for PHPUnit
# The JSON file is provided by the `shivammathur/setup-php` action. See https://github.com/shivammathur/setup-php#problem-matchers.
@@ -310,26 +330,17 @@ jobs:
- name: Install WP tests
run: bash bin/ci/install-wp-tests.sh wordpress_test root '' 127.0.0.1:${{ job.services.mysql.ports['3306'] }} ${{ matrix.wp }} true
- - name: Setup PCOV
- if: ${{ matrix.coverage == true }}
- # phpdocumentor/reflection has to be removed as it makes use of an outdated dependency, making pcov/clobber
- # unable to be installed.
- run: |
- composer remove --dev phpdocumentor/reflection
- composer require --dev --ignore-platform-reqs pcov/clobber
- vendor/bin/pcov clobber
-
- name: Copy plugin to WP plugins directory
run: cp -r "$PWD" "$WP_CORE_DIR/src/wp-content/plugins/pwa"
- name: Run tests
if: ${{ matrix.coverage == false }}
- run: vendor/bin/phpunit
+ run: phpunit --verbose
working-directory: ${{ env.WP_CORE_DIR }}/src/wp-content/plugins/pwa
- name: Run tests with coverage
if: ${{ matrix.coverage == true }}
- run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml
+ run: phpunit --verbose --coverage-clover build/logs/clover.xml
working-directory: ${{ env.WP_CORE_DIR }}/src/wp-content/plugins/pwa
- name: Upload code coverage report
diff --git a/.gitignore b/.gitignore
index c43d6e0d4..a2cfea6a8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,6 +7,7 @@
/wp-includes/js/workbox*
/wiki
.vscode
+.phpunit.result.cache
# Generated via bin/transform-readme.php
/readme.txt
diff --git a/.phpcs.xml.dist b/.phpcs.xml.dist
index ded5795d2..d22c826c7 100644
--- a/.phpcs.xml.dist
+++ b/.phpcs.xml.dist
@@ -29,7 +29,7 @@
-
+
diff --git a/README.md b/README.md
index b9f8f4ed3..8675e6aaf 100644
--- a/README.md
+++ b/README.md
@@ -6,11 +6,11 @@ WordPress feature plugin to bring Progressive Web App (PWA) capabilities to Core
**Contributors:** [google](https://profiles.wordpress.org/google), [xwp](https://profiles.wordpress.org/xwp), [rtcamp](https://profiles.wordpress.org/rtcamp), [westonruter](https://profiles.wordpress.org/westonruter), [albertomedina](https://profiles.wordpress.org/albertomedina)
**Tags:** [pwa](https://wordpress.org/plugins/tags/pwa), [progressive web apps](https://wordpress.org/plugins/tags/progressive-web-apps), [service workers](https://wordpress.org/plugins/tags/service-workers), [web app manifest](https://wordpress.org/plugins/tags/web-app-manifest)
-**Requires at least:** 5.5
+**Requires at least:** 6.3
**Tested up to:** 6.3
**Stable tag:** 0.7.1
**License:** [GPLv2 or later](http://www.gnu.org/licenses/gpl-2.0.html)
-**Requires PHP:** 5.6
+**Requires PHP:** 7.0
[](https://github.com/GoogleChromeLabs/pwa-wp/actions?query=branch%3Adevelop+workflow%3A%22Build%2C+test+%26+measure%22)
[](http://gruntjs.com)
diff --git a/bin/verify-version-consistency.php b/bin/verify-version-consistency.php
index d1b52a52d..f3732f17f 100755
--- a/bin/verify-version-consistency.php
+++ b/bin/verify-version-consistency.php
@@ -19,14 +19,14 @@
$versions = array();
-$readme_md = file_get_contents( dirname( __FILE__ ) . '/../README.md' );
+$readme_md = file_get_contents( __DIR__ . '/../README.md' );
if ( ! preg_match( '/\*\*Stable tag:\*\*\s+(?P\S+)/i', $readme_md, $matches ) ) {
echo "Could not find stable tag in readme\n";
exit( 1 );
}
$versions['README.md#stable-tag'] = $matches['version'];
-$plugin_file = file_get_contents( dirname( __FILE__ ) . '/../pwa.php' );
+$plugin_file = file_get_contents( __DIR__ . '/../pwa.php' );
if ( ! preg_match( '/\*\s*Version:\s*(?P\d+\.\d+(?:.\d+)?(-\w+)?)/', $plugin_file, $matches ) ) {
echo "Could not find version in readme metadata\n";
exit( 1 );
diff --git a/bundled-theme-support/twentynineteen/offline.php b/bundled-theme-support/twentynineteen/offline.php
index 15331c656..139525168 100644
--- a/bundled-theme-support/twentynineteen/offline.php
+++ b/bundled-theme-support/twentynineteen/offline.php
@@ -12,7 +12,7 @@
// Add the body class for the 404 template for the sake of styling.
add_filter(
'body_class',
- function( $body_classes ) {
+ function ( $body_classes ) {
$body_classes[] = 'error404';
return $body_classes;
}
diff --git a/bundled-theme-support/twentysixteen/offline.php b/bundled-theme-support/twentysixteen/offline.php
index 3d736d91a..e312676a5 100644
--- a/bundled-theme-support/twentysixteen/offline.php
+++ b/bundled-theme-support/twentysixteen/offline.php
@@ -13,7 +13,7 @@
// Add the body class for the 404 template for the sake of styling.
add_filter(
'body_class',
- function( $body_classes ) {
+ function ( $body_classes ) {
$body_classes[] = 'error404';
return $body_classes;
}
diff --git a/bundled-theme-support/twentytwenty/offline.php b/bundled-theme-support/twentytwenty/offline.php
index 287fb3883..f6ab82a01 100644
--- a/bundled-theme-support/twentytwenty/offline.php
+++ b/bundled-theme-support/twentytwenty/offline.php
@@ -22,7 +22,7 @@ function () {
// Add the body class for the 404 template for the sake of styling.
add_filter(
'body_class',
- function( $body_classes ) {
+ function ( $body_classes ) {
$body_classes[] = 'error404';
return $body_classes;
}
diff --git a/composer.json b/composer.json
index 25cd33ea7..08d814bed 100644
--- a/composer.json
+++ b/composer.json
@@ -5,28 +5,27 @@
"type": "wordpress-plugin",
"homepage": "https://github.com/GoogleChromeLabs/pwa-wp",
"require": {
- "php": "^5.6 || ^7.0 || ^8.0",
+ "php": "^7.0 || ^8.0",
"ext-json": "*"
},
"require-dev": {
- "automattic/vipwpcs": "^2.3",
+ "automattic/vipwpcs": "3.0.0",
"civicrm/composer-downloads-plugin": "^3.0",
- "dealerdirect/phpcodesniffer-composer-installer": "0.7.2",
"php-stubs/wordpress-stubs": "^6.3.2",
"phpcompatibility/phpcompatibility-wp": "2.1.4",
"wp-cli/wp-cli": "^2.9",
- "wp-coding-standards/wpcs": "2.3.0",
- "yoast/wp-test-utils": "^0.2.2"
+ "wp-coding-standards/wpcs": "3.0.1",
+ "yoast/wp-test-utils": "1.2.0"
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"allow-plugins": {
- "dealerdirect/phpcodesniffer-composer-installer": true,
- "civicrm/composer-downloads-plugin": true
+ "civicrm/composer-downloads-plugin": true,
+ "dealerdirect/phpcodesniffer-composer-installer": true
},
"platform": {
- "php": "5.6"
+ "php": "7.0"
},
"sort-packages": true
},
@@ -41,13 +40,24 @@
"path": "vendor/bin/phpstan",
"type": "phar",
"url": "https://github.com/phpstan/phpstan/releases/latest/download/phpstan.phar"
+ },
+ "phpunit": {
+ "path": "vendor/bin/_phpunit",
+ "type": "phar",
+ "url": "https://phar.phpunit.de/phpunit-9.phar"
}
}
},
"scripts": {
+ "post-install-cmd": [
+ "@php -r \"if (file_exists('vendor/bin/_phpunit')) { rename('vendor/bin/_phpunit', 'vendor/bin/phpunit'); }\""
+ ],
+ "post-update-cmd": [
+ "composer run-script post-install-cmd"
+ ],
"analyze": "if [ -z $TEST_SKIP_PHPSTAN ]; then phpstan --version; phpstan analyze --ansi --memory-limit=1G; fi",
"pre-commit": [
"npm run lint:staged"
]
}
-}
+}
\ No newline at end of file
diff --git a/composer.lock b/composer.lock
index 58c7292c4..4e5e5c78c 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,21 +4,21 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "a33da06a957b0a7464b09c025bd45697",
+ "content-hash": "58bf6f72968a32e3ad17e466f10cce3d",
"packages": [],
"packages-dev": [
{
"name": "antecedent/patchwork",
- "version": "2.1.21",
+ "version": "2.1.27",
"source": {
"type": "git",
"url": "https://github.com/antecedent/patchwork.git",
- "reference": "25c1fa0cd9a6e6d0d13863d8df8f050b6733f16d"
+ "reference": "16a1ab81559aabf14acb616141e801b32777f085"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/antecedent/patchwork/zipball/25c1fa0cd9a6e6d0d13863d8df8f050b6733f16d",
- "reference": "25c1fa0cd9a6e6d0d13863d8df8f050b6733f16d",
+ "url": "https://api.github.com/repos/antecedent/patchwork/zipball/16a1ab81559aabf14acb616141e801b32777f085",
+ "reference": "16a1ab81559aabf14acb616141e801b32777f085",
"shasum": ""
},
"require": {
@@ -39,7 +39,7 @@
}
],
"description": "Method redefinition (monkey-patching) functionality for PHP.",
- "homepage": "http://patchwork2.org/",
+ "homepage": "https://antecedent.github.io/patchwork/",
"keywords": [
"aop",
"aspect",
@@ -51,34 +51,35 @@
],
"support": {
"issues": "https://github.com/antecedent/patchwork/issues",
- "source": "https://github.com/antecedent/patchwork/tree/2.1.21"
+ "source": "https://github.com/antecedent/patchwork/tree/2.1.27"
},
- "time": "2022-02-07T07:28:34+00:00"
+ "time": "2023-12-03T18:46:49+00:00"
},
{
"name": "automattic/vipwpcs",
- "version": "2.3.3",
+ "version": "3.0.0",
"source": {
"type": "git",
"url": "https://github.com/Automattic/VIP-Coding-Standards.git",
- "reference": "6cd0a6a82bc0ac988dbf9d6a7c2e293dc8ac640b"
+ "reference": "1b8960ebff9ea3eb482258a906ece4d1ee1e25fd"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/Automattic/VIP-Coding-Standards/zipball/6cd0a6a82bc0ac988dbf9d6a7c2e293dc8ac640b",
- "reference": "6cd0a6a82bc0ac988dbf9d6a7c2e293dc8ac640b",
+ "url": "https://api.github.com/repos/Automattic/VIP-Coding-Standards/zipball/1b8960ebff9ea3eb482258a906ece4d1ee1e25fd",
+ "reference": "1b8960ebff9ea3eb482258a906ece4d1ee1e25fd",
"shasum": ""
},
"require": {
- "dealerdirect/phpcodesniffer-composer-installer": "^0.4.1 || ^0.5 || ^0.6.2 || ^0.7",
"php": ">=5.4",
- "sirbrillig/phpcs-variable-analysis": "^2.11.1",
- "squizlabs/php_codesniffer": "^3.5.5",
- "wp-coding-standards/wpcs": "^2.3"
+ "phpcsstandards/phpcsextra": "^1.1.0",
+ "phpcsstandards/phpcsutils": "^1.0.8",
+ "sirbrillig/phpcs-variable-analysis": "^2.11.17",
+ "squizlabs/php_codesniffer": "^3.7.2",
+ "wp-coding-standards/wpcs": "^3.0"
},
"require-dev": {
- "php-parallel-lint/php-console-highlighter": "^0.5",
- "php-parallel-lint/php-parallel-lint": "^1.0",
+ "php-parallel-lint/php-console-highlighter": "^1.0.0",
+ "php-parallel-lint/php-parallel-lint": "^1.3.2",
"phpcompatibility/php-compatibility": "^9",
"phpcsstandards/phpcsdevtools": "^1.0",
"phpunit/phpunit": "^4 || ^5 || ^6 || ^7"
@@ -98,6 +99,7 @@
"keywords": [
"phpcs",
"standards",
+ "static analysis",
"wordpress"
],
"support": {
@@ -105,7 +107,7 @@
"source": "https://github.com/Automattic/VIP-Coding-Standards",
"wiki": "https://github.com/Automattic/VIP-Coding-Standards/wiki"
},
- "time": "2021-09-29T16:20:23+00:00"
+ "time": "2023-09-05T11:01:05+00:00"
},
{
"name": "brain/monkey",
@@ -233,35 +235,38 @@
},
{
"name": "dealerdirect/phpcodesniffer-composer-installer",
- "version": "v0.7.2",
+ "version": "v1.0.0",
"source": {
"type": "git",
- "url": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer.git",
- "reference": "1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db"
+ "url": "https://github.com/PHPCSStandards/composer-installer.git",
+ "reference": "4be43904336affa5c2f70744a348312336afd0da"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/Dealerdirect/phpcodesniffer-composer-installer/zipball/1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db",
- "reference": "1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db",
+ "url": "https://api.github.com/repos/PHPCSStandards/composer-installer/zipball/4be43904336affa5c2f70744a348312336afd0da",
+ "reference": "4be43904336affa5c2f70744a348312336afd0da",
"shasum": ""
},
"require": {
"composer-plugin-api": "^1.0 || ^2.0",
- "php": ">=5.3",
+ "php": ">=5.4",
"squizlabs/php_codesniffer": "^2.0 || ^3.1.0 || ^4.0"
},
"require-dev": {
"composer/composer": "*",
+ "ext-json": "*",
+ "ext-zip": "*",
"php-parallel-lint/php-parallel-lint": "^1.3.1",
- "phpcompatibility/php-compatibility": "^9.0"
+ "phpcompatibility/php-compatibility": "^9.0",
+ "yoast/phpunit-polyfills": "^1.0"
},
"type": "composer-plugin",
"extra": {
- "class": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin"
+ "class": "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin"
},
"autoload": {
"psr-4": {
- "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/"
+ "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
@@ -277,7 +282,7 @@
},
{
"name": "Contributors",
- "homepage": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer/graphs/contributors"
+ "homepage": "https://github.com/PHPCSStandards/composer-installer/graphs/contributors"
}
],
"description": "PHP_CodeSniffer Standards Composer Installer Plugin",
@@ -301,10 +306,10 @@
"tests"
],
"support": {
- "issues": "https://github.com/dealerdirect/phpcodesniffer-composer-installer/issues",
- "source": "https://github.com/dealerdirect/phpcodesniffer-composer-installer"
+ "issues": "https://github.com/PHPCSStandards/composer-installer/issues",
+ "source": "https://github.com/PHPCSStandards/composer-installer"
},
- "time": "2022-02-04T12:51:07+00:00"
+ "time": "2023-01-05T11:28:13+00:00"
},
{
"name": "doctrine/instantiator",
@@ -360,8 +365,22 @@
],
"support": {
"issues": "https://github.com/doctrine/instantiator/issues",
- "source": "https://github.com/doctrine/instantiator/tree/master"
+ "source": "https://github.com/doctrine/instantiator/tree/1.0.5"
},
+ "funding": [
+ {
+ "url": "https://www.doctrine-project.org/sponsorship.html",
+ "type": "custom"
+ },
+ {
+ "url": "https://www.patreon.com/phpdoctrine",
+ "type": "patreon"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator",
+ "type": "tidelift"
+ }
+ ],
"time": "2015-06-14T21:17:01+00:00"
},
{
@@ -417,16 +436,16 @@
},
{
"name": "mockery/mockery",
- "version": "1.3.5",
+ "version": "1.3.6",
"source": {
"type": "git",
"url": "https://github.com/mockery/mockery.git",
- "reference": "472fa8ca4e55483d55ee1e73c963718c4393791d"
+ "reference": "dc206df4fa314a50bbb81cf72239a305c5bbd5c0"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/mockery/mockery/zipball/472fa8ca4e55483d55ee1e73c963718c4393791d",
- "reference": "472fa8ca4e55483d55ee1e73c963718c4393791d",
+ "url": "https://api.github.com/repos/mockery/mockery/zipball/dc206df4fa314a50bbb81cf72239a305c5bbd5c0",
+ "reference": "dc206df4fa314a50bbb81cf72239a305c5bbd5c0",
"shasum": ""
},
"require": {
@@ -480,9 +499,9 @@
],
"support": {
"issues": "https://github.com/mockery/mockery/issues",
- "source": "https://github.com/mockery/mockery/tree/1.3.5"
+ "source": "https://github.com/mockery/mockery/tree/1.3.6"
},
- "time": "2021-09-13T15:33:03+00:00"
+ "time": "2022-09-07T15:05:49+00:00"
},
{
"name": "mustache/mustache",
@@ -583,27 +602,139 @@
},
"time": "2017-10-19T19:58:43+00:00"
},
+ {
+ "name": "phar-io/manifest",
+ "version": "1.0.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/phar-io/manifest.git",
+ "reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phar-io/manifest/zipball/2df402786ab5368a0169091f61a7c1e0eb6852d0",
+ "reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0",
+ "shasum": ""
+ },
+ "require": {
+ "ext-dom": "*",
+ "ext-phar": "*",
+ "phar-io/version": "^1.0.1",
+ "php": "^5.6 || ^7.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0.x-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Arne Blankerts",
+ "email": "arne@blankerts.de",
+ "role": "Developer"
+ },
+ {
+ "name": "Sebastian Heuer",
+ "email": "sebastian@phpeople.de",
+ "role": "Developer"
+ },
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "Developer"
+ }
+ ],
+ "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)",
+ "support": {
+ "issues": "https://github.com/phar-io/manifest/issues",
+ "source": "https://github.com/phar-io/manifest/tree/master"
+ },
+ "time": "2017-03-05T18:14:27+00:00"
+ },
+ {
+ "name": "phar-io/version",
+ "version": "1.0.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/phar-io/version.git",
+ "reference": "a70c0ced4be299a63d32fa96d9281d03e94041df"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phar-io/version/zipball/a70c0ced4be299a63d32fa96d9281d03e94041df",
+ "reference": "a70c0ced4be299a63d32fa96d9281d03e94041df",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^5.6 || ^7.0"
+ },
+ "type": "library",
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Arne Blankerts",
+ "email": "arne@blankerts.de",
+ "role": "Developer"
+ },
+ {
+ "name": "Sebastian Heuer",
+ "email": "sebastian@phpeople.de",
+ "role": "Developer"
+ },
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "Developer"
+ }
+ ],
+ "description": "Library for handling version information and constraints",
+ "support": {
+ "issues": "https://github.com/phar-io/version/issues",
+ "source": "https://github.com/phar-io/version/tree/master"
+ },
+ "time": "2017-03-05T17:38:23+00:00"
+ },
{
"name": "php-stubs/wordpress-stubs",
- "version": "v6.3.2",
+ "version": "v6.4.1",
"source": {
"type": "git",
"url": "https://github.com/php-stubs/wordpress-stubs.git",
- "reference": "f22b00cacd3b9addc2b07ff48290084503c48574"
+ "reference": "6d6063cf9464a306ca2a0529705d41312b08500b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/f22b00cacd3b9addc2b07ff48290084503c48574",
- "reference": "f22b00cacd3b9addc2b07ff48290084503c48574",
+ "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/6d6063cf9464a306ca2a0529705d41312b08500b",
+ "reference": "6d6063cf9464a306ca2a0529705d41312b08500b",
"shasum": ""
},
"require-dev": {
+ "dealerdirect/phpcodesniffer-composer-installer": "^1.0",
"nikic/php-parser": "^4.13",
"php": "^7.4 || ~8.0.0",
"php-stubs/generator": "^0.8.3",
"phpdocumentor/reflection-docblock": "^5.3",
"phpstan/phpstan": "^1.10.12",
- "phpunit/phpunit": "^9.5"
+ "phpunit/phpunit": "^9.5",
+ "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^0.8"
},
"suggest": {
"paragonie/sodium_compat": "Pure PHP implementation of libsodium",
@@ -624,9 +755,9 @@
],
"support": {
"issues": "https://github.com/php-stubs/wordpress-stubs/issues",
- "source": "https://github.com/php-stubs/wordpress-stubs/tree/v6.3.2"
+ "source": "https://github.com/php-stubs/wordpress-stubs/tree/v6.4.1"
},
- "time": "2023-10-14T10:08:05+00:00"
+ "time": "2023-11-10T00:33:47+00:00"
},
{
"name": "phpcompatibility/php-compatibility",
@@ -692,16 +823,16 @@
},
{
"name": "phpcompatibility/phpcompatibility-paragonie",
- "version": "1.3.1",
+ "version": "1.3.2",
"source": {
"type": "git",
"url": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie.git",
- "reference": "ddabec839cc003651f2ce695c938686d1086cf43"
+ "reference": "bba5a9dfec7fcfbd679cfaf611d86b4d3759da26"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityParagonie/zipball/ddabec839cc003651f2ce695c938686d1086cf43",
- "reference": "ddabec839cc003651f2ce695c938686d1086cf43",
+ "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityParagonie/zipball/bba5a9dfec7fcfbd679cfaf611d86b4d3759da26",
+ "reference": "bba5a9dfec7fcfbd679cfaf611d86b4d3759da26",
"shasum": ""
},
"require": {
@@ -738,13 +869,14 @@
"paragonie",
"phpcs",
"polyfill",
- "standards"
+ "standards",
+ "static analysis"
],
"support": {
"issues": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie/issues",
"source": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie"
},
- "time": "2021-02-15T10:24:51+00:00"
+ "time": "2022-10-25T01:46:02+00:00"
},
{
"name": "phpcompatibility/phpcompatibility-wp",
@@ -801,6 +933,172 @@
},
"time": "2022-10-24T09:00:36+00:00"
},
+ {
+ "name": "phpcsstandards/phpcsextra",
+ "version": "1.2.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/PHPCSStandards/PHPCSExtra.git",
+ "reference": "11d387c6642b6e4acaf0bd9bf5203b8cca1ec489"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/PHPCSStandards/PHPCSExtra/zipball/11d387c6642b6e4acaf0bd9bf5203b8cca1ec489",
+ "reference": "11d387c6642b6e4acaf0bd9bf5203b8cca1ec489",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.4",
+ "phpcsstandards/phpcsutils": "^1.0.9",
+ "squizlabs/php_codesniffer": "^3.8.0"
+ },
+ "require-dev": {
+ "php-parallel-lint/php-console-highlighter": "^1.0",
+ "php-parallel-lint/php-parallel-lint": "^1.3.2",
+ "phpcsstandards/phpcsdevcs": "^1.1.6",
+ "phpcsstandards/phpcsdevtools": "^1.2.1",
+ "phpunit/phpunit": "^4.5 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0"
+ },
+ "type": "phpcodesniffer-standard",
+ "extra": {
+ "branch-alias": {
+ "dev-stable": "1.x-dev",
+ "dev-develop": "1.x-dev"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "LGPL-3.0-or-later"
+ ],
+ "authors": [
+ {
+ "name": "Juliette Reinders Folmer",
+ "homepage": "https://github.com/jrfnl",
+ "role": "lead"
+ },
+ {
+ "name": "Contributors",
+ "homepage": "https://github.com/PHPCSStandards/PHPCSExtra/graphs/contributors"
+ }
+ ],
+ "description": "A collection of sniffs and standards for use with PHP_CodeSniffer.",
+ "keywords": [
+ "PHP_CodeSniffer",
+ "phpcbf",
+ "phpcodesniffer-standard",
+ "phpcs",
+ "standards",
+ "static analysis"
+ ],
+ "support": {
+ "issues": "https://github.com/PHPCSStandards/PHPCSExtra/issues",
+ "security": "https://github.com/PHPCSStandards/PHPCSExtra/security/policy",
+ "source": "https://github.com/PHPCSStandards/PHPCSExtra"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/PHPCSStandards",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/jrfnl",
+ "type": "github"
+ },
+ {
+ "url": "https://opencollective.com/php_codesniffer",
+ "type": "open_collective"
+ }
+ ],
+ "time": "2023-12-08T16:49:07+00:00"
+ },
+ {
+ "name": "phpcsstandards/phpcsutils",
+ "version": "1.0.9",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/PHPCSStandards/PHPCSUtils.git",
+ "reference": "908247bc65010c7b7541a9551e002db12e9dae70"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/PHPCSStandards/PHPCSUtils/zipball/908247bc65010c7b7541a9551e002db12e9dae70",
+ "reference": "908247bc65010c7b7541a9551e002db12e9dae70",
+ "shasum": ""
+ },
+ "require": {
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.4.1 || ^0.5 || ^0.6.2 || ^0.7 || ^1.0",
+ "php": ">=5.4",
+ "squizlabs/php_codesniffer": "^3.8.0 || 4.0.x-dev@dev"
+ },
+ "require-dev": {
+ "ext-filter": "*",
+ "php-parallel-lint/php-console-highlighter": "^1.0",
+ "php-parallel-lint/php-parallel-lint": "^1.3.2",
+ "phpcsstandards/phpcsdevcs": "^1.1.6",
+ "yoast/phpunit-polyfills": "^1.1.0 || ^2.0.0"
+ },
+ "type": "phpcodesniffer-standard",
+ "extra": {
+ "branch-alias": {
+ "dev-stable": "1.x-dev",
+ "dev-develop": "1.x-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "PHPCSUtils/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "LGPL-3.0-or-later"
+ ],
+ "authors": [
+ {
+ "name": "Juliette Reinders Folmer",
+ "homepage": "https://github.com/jrfnl",
+ "role": "lead"
+ },
+ {
+ "name": "Contributors",
+ "homepage": "https://github.com/PHPCSStandards/PHPCSUtils/graphs/contributors"
+ }
+ ],
+ "description": "A suite of utility functions for use with PHP_CodeSniffer",
+ "homepage": "https://phpcsutils.com/",
+ "keywords": [
+ "PHP_CodeSniffer",
+ "phpcbf",
+ "phpcodesniffer-standard",
+ "phpcs",
+ "phpcs3",
+ "standards",
+ "static analysis",
+ "tokens",
+ "utility"
+ ],
+ "support": {
+ "docs": "https://phpcsutils.com/",
+ "issues": "https://github.com/PHPCSStandards/PHPCSUtils/issues",
+ "security": "https://github.com/PHPCSStandards/PHPCSUtils/security/policy",
+ "source": "https://github.com/PHPCSStandards/PHPCSUtils"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/PHPCSStandards",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/jrfnl",
+ "type": "github"
+ },
+ {
+ "url": "https://opencollective.com/php_codesniffer",
+ "type": "open_collective"
+ }
+ ],
+ "time": "2023-12-08T14:50:00+00:00"
+ },
{
"name": "phpdocumentor/reflection-common",
"version": "1.0.1",
@@ -861,29 +1159,36 @@
},
{
"name": "phpdocumentor/reflection-docblock",
- "version": "3.3.2",
+ "version": "4.3.4",
"source": {
"type": "git",
"url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
- "reference": "bf329f6c1aadea3299f08ee804682b7c45b326a2"
+ "reference": "da3fd972d6bafd628114f7e7e036f45944b62e9c"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/bf329f6c1aadea3299f08ee804682b7c45b326a2",
- "reference": "bf329f6c1aadea3299f08ee804682b7c45b326a2",
+ "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/da3fd972d6bafd628114f7e7e036f45944b62e9c",
+ "reference": "da3fd972d6bafd628114f7e7e036f45944b62e9c",
"shasum": ""
},
"require": {
- "php": "^5.6 || ^7.0",
- "phpdocumentor/reflection-common": "^1.0.0",
- "phpdocumentor/type-resolver": "^0.4.0",
+ "php": "^7.0",
+ "phpdocumentor/reflection-common": "^1.0.0 || ^2.0.0",
+ "phpdocumentor/type-resolver": "~0.4 || ^1.0.0",
"webmozart/assert": "^1.0"
},
"require-dev": {
- "mockery/mockery": "^0.9.4",
- "phpunit/phpunit": "^4.4"
+ "doctrine/instantiator": "^1.0.5",
+ "mockery/mockery": "^1.0",
+ "phpdocumentor/type-resolver": "0.4.*",
+ "phpunit/phpunit": "^6.4"
},
"type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "4.x-dev"
+ }
+ },
"autoload": {
"psr-4": {
"phpDocumentor\\Reflection\\": [
@@ -904,31 +1209,31 @@
"description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
"support": {
"issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues",
- "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/release/3.x"
+ "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/release/4.x"
},
- "time": "2017-11-10T14:09:06+00:00"
+ "time": "2019-12-28T18:55:12+00:00"
},
{
"name": "phpdocumentor/type-resolver",
- "version": "0.4.0",
+ "version": "0.5.1",
"source": {
"type": "git",
"url": "https://github.com/phpDocumentor/TypeResolver.git",
- "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7"
+ "reference": "cf842904952e64e703800d094cdf34e715a8a3ae"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/9c977708995954784726e25d0cd1dddf4e65b0f7",
- "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7",
+ "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/cf842904952e64e703800d094cdf34e715a8a3ae",
+ "reference": "cf842904952e64e703800d094cdf34e715a8a3ae",
"shasum": ""
},
"require": {
- "php": "^5.5 || ^7.0",
+ "php": "^7.0",
"phpdocumentor/reflection-common": "^1.0"
},
"require-dev": {
- "mockery/mockery": "^0.9.4",
- "phpunit/phpunit": "^5.2||^4.8.24"
+ "mockery/mockery": "^1.0",
+ "phpunit/phpunit": "^6.4"
},
"type": "library",
"extra": {
@@ -938,9 +1243,7 @@
},
"autoload": {
"psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src/"
- ]
+ "phpDocumentor\\Reflection\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
@@ -957,7 +1260,7 @@
"issues": "https://github.com/phpDocumentor/TypeResolver/issues",
"source": "https://github.com/phpDocumentor/TypeResolver/tree/master"
},
- "time": "2017-07-14T14:27:02+00:00"
+ "time": "2017-12-30T13:23:38+00:00"
},
{
"name": "phpspec/prophecy",
@@ -1028,40 +1331,40 @@
},
{
"name": "phpunit/php-code-coverage",
- "version": "4.0.8",
+ "version": "5.3.2",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d"
+ "reference": "c89677919c5dd6d3b3852f230a663118762218ac"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/ef7b2f56815df854e66ceaee8ebe9393ae36a40d",
- "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/c89677919c5dd6d3b3852f230a663118762218ac",
+ "reference": "c89677919c5dd6d3b3852f230a663118762218ac",
"shasum": ""
},
"require": {
"ext-dom": "*",
"ext-xmlwriter": "*",
- "php": "^5.6 || ^7.0",
- "phpunit/php-file-iterator": "^1.3",
- "phpunit/php-text-template": "^1.2",
- "phpunit/php-token-stream": "^1.4.2 || ^2.0",
- "sebastian/code-unit-reverse-lookup": "^1.0",
- "sebastian/environment": "^1.3.2 || ^2.0",
- "sebastian/version": "^1.0 || ^2.0"
+ "php": "^7.0",
+ "phpunit/php-file-iterator": "^1.4.2",
+ "phpunit/php-text-template": "^1.2.1",
+ "phpunit/php-token-stream": "^2.0.1",
+ "sebastian/code-unit-reverse-lookup": "^1.0.1",
+ "sebastian/environment": "^3.0",
+ "sebastian/version": "^2.0.1",
+ "theseer/tokenizer": "^1.1"
},
"require-dev": {
- "ext-xdebug": "^2.1.4",
- "phpunit/phpunit": "^5.7"
+ "phpunit/phpunit": "^6.0"
},
"suggest": {
- "ext-xdebug": "^2.5.1"
+ "ext-xdebug": "^2.5.5"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "4.0.x-dev"
+ "dev-master": "5.3.x-dev"
}
},
"autoload": {
@@ -1076,7 +1379,7 @@
"authors": [
{
"name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
+ "email": "sebastian@phpunit.de",
"role": "lead"
}
],
@@ -1088,11 +1391,10 @@
"xunit"
],
"support": {
- "irc": "irc://irc.freenode.net/phpunit",
"issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
- "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/4.0"
+ "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/5.3"
},
- "time": "2017-04-02T07:44:40+00:00"
+ "time": "2018-04-06T15:36:58+00:00"
},
{
"name": "phpunit/php-file-iterator",
@@ -1246,29 +1548,29 @@
},
{
"name": "phpunit/php-token-stream",
- "version": "1.4.12",
+ "version": "2.0.2",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-token-stream.git",
- "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16"
+ "reference": "791198a2c6254db10131eecfe8c06670700904db"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/1ce90ba27c42e4e44e6d8458241466380b51fa16",
- "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/791198a2c6254db10131eecfe8c06670700904db",
+ "reference": "791198a2c6254db10131eecfe8c06670700904db",
"shasum": ""
},
"require": {
"ext-tokenizer": "*",
- "php": ">=5.3.3"
+ "php": "^7.0"
},
"require-dev": {
- "phpunit/phpunit": "~4.2"
+ "phpunit/phpunit": "^6.2.4"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.4-dev"
+ "dev-master": "2.0-dev"
}
},
"autoload": {
@@ -1293,23 +1595,23 @@
],
"support": {
"issues": "https://github.com/sebastianbergmann/php-token-stream/issues",
- "source": "https://github.com/sebastianbergmann/php-token-stream/tree/1.4"
+ "source": "https://github.com/sebastianbergmann/php-token-stream/tree/master"
},
"abandoned": true,
- "time": "2017-12-04T08:55:13+00:00"
+ "time": "2017-11-27T05:48:46+00:00"
},
{
"name": "phpunit/phpunit",
- "version": "5.7.27",
+ "version": "6.5.14",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c"
+ "reference": "bac23fe7ff13dbdb461481f706f0e9fe746334b7"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c",
- "reference": "b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c",
+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/bac23fe7ff13dbdb461481f706f0e9fe746334b7",
+ "reference": "bac23fe7ff13dbdb461481f706f0e9fe746334b7",
"shasum": ""
},
"require": {
@@ -1318,33 +1620,35 @@
"ext-libxml": "*",
"ext-mbstring": "*",
"ext-xml": "*",
- "myclabs/deep-copy": "~1.3",
- "php": "^5.6 || ^7.0",
- "phpspec/prophecy": "^1.6.2",
- "phpunit/php-code-coverage": "^4.0.4",
- "phpunit/php-file-iterator": "~1.4",
- "phpunit/php-text-template": "~1.2",
- "phpunit/php-timer": "^1.0.6",
- "phpunit/phpunit-mock-objects": "^3.2",
- "sebastian/comparator": "^1.2.4",
- "sebastian/diff": "^1.4.3",
- "sebastian/environment": "^1.3.4 || ^2.0",
- "sebastian/exporter": "~2.0",
- "sebastian/global-state": "^1.1",
- "sebastian/object-enumerator": "~2.0",
- "sebastian/resource-operations": "~1.0",
- "sebastian/version": "^1.0.6|^2.0.1",
- "symfony/yaml": "~2.1|~3.0|~4.0"
+ "myclabs/deep-copy": "^1.6.1",
+ "phar-io/manifest": "^1.0.1",
+ "phar-io/version": "^1.0",
+ "php": "^7.0",
+ "phpspec/prophecy": "^1.7",
+ "phpunit/php-code-coverage": "^5.3",
+ "phpunit/php-file-iterator": "^1.4.3",
+ "phpunit/php-text-template": "^1.2.1",
+ "phpunit/php-timer": "^1.0.9",
+ "phpunit/phpunit-mock-objects": "^5.0.9",
+ "sebastian/comparator": "^2.1",
+ "sebastian/diff": "^2.0",
+ "sebastian/environment": "^3.1",
+ "sebastian/exporter": "^3.1",
+ "sebastian/global-state": "^2.0",
+ "sebastian/object-enumerator": "^3.0.3",
+ "sebastian/resource-operations": "^1.0",
+ "sebastian/version": "^2.0.1"
},
"conflict": {
- "phpdocumentor/reflection-docblock": "3.0.2"
+ "phpdocumentor/reflection-docblock": "3.0.2",
+ "phpunit/dbunit": "<3.0"
},
"require-dev": {
"ext-pdo": "*"
},
"suggest": {
"ext-xdebug": "*",
- "phpunit/php-invoker": "~1.1"
+ "phpunit/php-invoker": "^1.1"
},
"bin": [
"phpunit"
@@ -1352,7 +1656,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "5.7.x-dev"
+ "dev-master": "6.5.x-dev"
}
},
"autoload": {
@@ -1380,35 +1684,35 @@
],
"support": {
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
- "source": "https://github.com/sebastianbergmann/phpunit/tree/5.7.27"
+ "source": "https://github.com/sebastianbergmann/phpunit/tree/6.5.14"
},
- "time": "2018-02-01T05:50:59+00:00"
+ "time": "2019-02-01T05:22:47+00:00"
},
{
"name": "phpunit/phpunit-mock-objects",
- "version": "3.4.4",
+ "version": "5.0.10",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
- "reference": "a23b761686d50a560cc56233b9ecf49597cc9118"
+ "reference": "cd1cf05c553ecfec36b170070573e540b67d3f1f"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/a23b761686d50a560cc56233b9ecf49597cc9118",
- "reference": "a23b761686d50a560cc56233b9ecf49597cc9118",
+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/cd1cf05c553ecfec36b170070573e540b67d3f1f",
+ "reference": "cd1cf05c553ecfec36b170070573e540b67d3f1f",
"shasum": ""
},
"require": {
- "doctrine/instantiator": "^1.0.2",
- "php": "^5.6 || ^7.0",
- "phpunit/php-text-template": "^1.2",
- "sebastian/exporter": "^1.2 || ^2.0"
+ "doctrine/instantiator": "^1.0.5",
+ "php": "^7.0",
+ "phpunit/php-text-template": "^1.2.1",
+ "sebastian/exporter": "^3.1"
},
"conflict": {
- "phpunit/phpunit": "<5.4.0"
+ "phpunit/phpunit": "<6.0"
},
"require-dev": {
- "phpunit/phpunit": "^5.4"
+ "phpunit/phpunit": "^6.5.11"
},
"suggest": {
"ext-soap": "*"
@@ -1416,7 +1720,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.2.x-dev"
+ "dev-master": "5.0.x-dev"
}
},
"autoload": {
@@ -1431,7 +1735,7 @@
"authors": [
{
"name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
+ "email": "sebastian@phpunit.de",
"role": "lead"
}
],
@@ -1442,12 +1746,11 @@
"xunit"
],
"support": {
- "irc": "irc://irc.freenode.net/phpunit",
"issues": "https://github.com/sebastianbergmann/phpunit-mock-objects/issues",
- "source": "https://github.com/sebastianbergmann/phpunit-mock-objects/tree/3.4"
+ "source": "https://github.com/sebastianbergmann/phpunit-mock-objects/tree/5.0.10"
},
"abandoned": true,
- "time": "2017-06-30T09:13:00+00:00"
+ "time": "2018-08-09T05:50:03+00:00"
},
{
"name": "sebastian/code-unit-reverse-lookup",
@@ -1506,30 +1809,30 @@
},
{
"name": "sebastian/comparator",
- "version": "1.2.4",
+ "version": "2.1.3",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be"
+ "reference": "34369daee48eafb2651bea869b4b15d75ccc35f9"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
- "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
+ "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/34369daee48eafb2651bea869b4b15d75ccc35f9",
+ "reference": "34369daee48eafb2651bea869b4b15d75ccc35f9",
"shasum": ""
},
"require": {
- "php": ">=5.3.3",
- "sebastian/diff": "~1.2",
- "sebastian/exporter": "~1.2 || ~2.0"
+ "php": "^7.0",
+ "sebastian/diff": "^2.0 || ^3.0",
+ "sebastian/exporter": "^3.1"
},
"require-dev": {
- "phpunit/phpunit": "~4.4"
+ "phpunit/phpunit": "^6.4"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.2.x-dev"
+ "dev-master": "2.1.x-dev"
}
},
"autoload": {
@@ -1560,7 +1863,7 @@
}
],
"description": "Provides the functionality to compare PHP values for equality",
- "homepage": "http://www.github.com/sebastianbergmann/comparator",
+ "homepage": "https://github.com/sebastianbergmann/comparator",
"keywords": [
"comparator",
"compare",
@@ -1568,34 +1871,34 @@
],
"support": {
"issues": "https://github.com/sebastianbergmann/comparator/issues",
- "source": "https://github.com/sebastianbergmann/comparator/tree/1.2"
+ "source": "https://github.com/sebastianbergmann/comparator/tree/master"
},
- "time": "2017-01-29T09:50:25+00:00"
+ "time": "2018-02-01T13:46:46+00:00"
},
{
"name": "sebastian/diff",
- "version": "1.4.3",
+ "version": "2.0.1",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/diff.git",
- "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4"
+ "reference": "347c1d8b49c5c3ee30c7040ea6fc446790e6bddd"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7f066a26a962dbe58ddea9f72a4e82874a3975a4",
- "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4",
+ "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/347c1d8b49c5c3ee30c7040ea6fc446790e6bddd",
+ "reference": "347c1d8b49c5c3ee30c7040ea6fc446790e6bddd",
"shasum": ""
},
"require": {
- "php": "^5.3.3 || ^7.0"
+ "php": "^7.0"
},
"require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
+ "phpunit/phpunit": "^6.2"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.4-dev"
+ "dev-master": "2.0-dev"
}
},
"autoload": {
@@ -1624,34 +1927,34 @@
],
"support": {
"issues": "https://github.com/sebastianbergmann/diff/issues",
- "source": "https://github.com/sebastianbergmann/diff/tree/1.4"
+ "source": "https://github.com/sebastianbergmann/diff/tree/master"
},
- "time": "2017-05-22T07:24:03+00:00"
+ "time": "2017-08-03T08:09:46+00:00"
},
{
"name": "sebastian/environment",
- "version": "2.0.0",
+ "version": "3.1.0",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/environment.git",
- "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac"
+ "reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/5795ffe5dc5b02460c3e34222fee8cbe245d8fac",
- "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac",
+ "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/cd0871b3975fb7fc44d11314fd1ee20925fce4f5",
+ "reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5",
"shasum": ""
},
"require": {
- "php": "^5.6 || ^7.0"
+ "php": "^7.0"
},
"require-dev": {
- "phpunit/phpunit": "^5.0"
+ "phpunit/phpunit": "^6.1"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.0.x-dev"
+ "dev-master": "3.1.x-dev"
}
},
"autoload": {
@@ -1680,34 +1983,34 @@
"issues": "https://github.com/sebastianbergmann/environment/issues",
"source": "https://github.com/sebastianbergmann/environment/tree/master"
},
- "time": "2016-11-26T07:53:53+00:00"
+ "time": "2017-07-01T08:51:00+00:00"
},
{
"name": "sebastian/exporter",
- "version": "2.0.0",
+ "version": "3.1.5",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/exporter.git",
- "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4"
+ "reference": "73a9676f2833b9a7c36968f9d882589cd75511e6"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4",
- "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4",
+ "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/73a9676f2833b9a7c36968f9d882589cd75511e6",
+ "reference": "73a9676f2833b9a7c36968f9d882589cd75511e6",
"shasum": ""
},
"require": {
- "php": ">=5.3.3",
- "sebastian/recursion-context": "~2.0"
+ "php": ">=7.0",
+ "sebastian/recursion-context": "^3.0"
},
"require-dev": {
"ext-mbstring": "*",
- "phpunit/phpunit": "~4.4"
+ "phpunit/phpunit": "^8.5"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.0.x-dev"
+ "dev-master": "3.1.x-dev"
}
},
"autoload": {
@@ -1720,6 +2023,10 @@
"BSD-3-Clause"
],
"authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ },
{
"name": "Jeff Welch",
"email": "whatthejeff@gmail.com"
@@ -1728,17 +2035,13 @@
"name": "Volker Dusch",
"email": "github@wallbash.com"
},
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
{
"name": "Adam Harvey",
"email": "aharvey@php.net"
+ },
+ {
+ "name": "Bernhard Schussek",
+ "email": "bschussek@gmail.com"
}
],
"description": "Provides the functionality to export PHP variables for visualization",
@@ -1749,29 +2052,35 @@
],
"support": {
"issues": "https://github.com/sebastianbergmann/exporter/issues",
- "source": "https://github.com/sebastianbergmann/exporter/tree/master"
+ "source": "https://github.com/sebastianbergmann/exporter/tree/3.1.5"
},
- "time": "2016-11-19T08:54:04+00:00"
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2022-09-14T06:00:17+00:00"
},
{
"name": "sebastian/global-state",
- "version": "1.1.1",
+ "version": "2.0.0",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/global-state.git",
- "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4"
+ "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4",
- "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4",
+ "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4",
+ "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4",
"shasum": ""
},
"require": {
- "php": ">=5.3.3"
+ "php": "^7.0"
},
"require-dev": {
- "phpunit/phpunit": "~4.2"
+ "phpunit/phpunit": "^6.0"
},
"suggest": {
"ext-uopz": "*"
@@ -1779,7 +2088,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.0-dev"
+ "dev-master": "2.0-dev"
}
},
"autoload": {
@@ -1804,35 +2113,36 @@
],
"support": {
"issues": "https://github.com/sebastianbergmann/global-state/issues",
- "source": "https://github.com/sebastianbergmann/global-state/tree/1.1.1"
+ "source": "https://github.com/sebastianbergmann/global-state/tree/2.0.0"
},
- "time": "2015-10-12T03:26:01+00:00"
+ "time": "2017-04-27T15:39:26+00:00"
},
{
"name": "sebastian/object-enumerator",
- "version": "2.0.1",
+ "version": "3.0.4",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/object-enumerator.git",
- "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7"
+ "reference": "e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/1311872ac850040a79c3c058bea3e22d0f09cbb7",
- "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7",
+ "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2",
+ "reference": "e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2",
"shasum": ""
},
"require": {
- "php": ">=5.6",
- "sebastian/recursion-context": "~2.0"
+ "php": ">=7.0",
+ "sebastian/object-reflector": "^1.1.1",
+ "sebastian/recursion-context": "^3.0"
},
"require-dev": {
- "phpunit/phpunit": "~5"
+ "phpunit/phpunit": "^6.0"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.0.x-dev"
+ "dev-master": "3.0.x-dev"
}
},
"autoload": {
@@ -1854,34 +2164,95 @@
"homepage": "https://github.com/sebastianbergmann/object-enumerator/",
"support": {
"issues": "https://github.com/sebastianbergmann/object-enumerator/issues",
- "source": "https://github.com/sebastianbergmann/object-enumerator/tree/master"
+ "source": "https://github.com/sebastianbergmann/object-enumerator/tree/3.0.4"
},
- "time": "2017-02-18T15:18:39+00:00"
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-11-30T07:40:27+00:00"
+ },
+ {
+ "name": "sebastian/object-reflector",
+ "version": "1.1.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/object-reflector.git",
+ "reference": "9b8772b9cbd456ab45d4a598d2dd1a1bced6363d"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/9b8772b9cbd456ab45d4a598d2dd1a1bced6363d",
+ "reference": "9b8772b9cbd456ab45d4a598d2dd1a1bced6363d",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^6.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.1-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ }
+ ],
+ "description": "Allows reflection of object attributes, including inherited and non-public ones",
+ "homepage": "https://github.com/sebastianbergmann/object-reflector/",
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/object-reflector/issues",
+ "source": "https://github.com/sebastianbergmann/object-reflector/tree/1.1.2"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-11-30T07:37:18+00:00"
},
{
"name": "sebastian/recursion-context",
- "version": "2.0.0",
+ "version": "3.0.1",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/recursion-context.git",
- "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a"
+ "reference": "367dcba38d6e1977be014dc4b22f47a484dac7fb"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/2c3ba150cbec723aa057506e73a8d33bdb286c9a",
- "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a",
+ "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/367dcba38d6e1977be014dc4b22f47a484dac7fb",
+ "reference": "367dcba38d6e1977be014dc4b22f47a484dac7fb",
"shasum": ""
},
"require": {
- "php": ">=5.3.3"
+ "php": ">=7.0"
},
"require-dev": {
- "phpunit/phpunit": "~4.4"
+ "phpunit/phpunit": "^6.0"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.0.x-dev"
+ "dev-master": "3.0.x-dev"
}
},
"autoload": {
@@ -1894,14 +2265,14 @@
"BSD-3-Clause"
],
"authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
{
"name": "Sebastian Bergmann",
"email": "sebastian@phpunit.de"
},
+ {
+ "name": "Jeff Welch",
+ "email": "whatthejeff@gmail.com"
+ },
{
"name": "Adam Harvey",
"email": "aharvey@php.net"
@@ -1911,9 +2282,15 @@
"homepage": "http://www.github.com/sebastianbergmann/recursion-context",
"support": {
"issues": "https://github.com/sebastianbergmann/recursion-context/issues",
- "source": "https://github.com/sebastianbergmann/recursion-context/tree/master"
+ "source": "https://github.com/sebastianbergmann/recursion-context/tree/3.0.1"
},
- "time": "2016-11-19T07:33:16+00:00"
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-11-30T07:34:24+00:00"
},
{
"name": "sebastian/resource-operations",
@@ -2010,28 +2387,29 @@
},
{
"name": "sirbrillig/phpcs-variable-analysis",
- "version": "v2.11.3",
+ "version": "v2.11.17",
"source": {
"type": "git",
"url": "https://github.com/sirbrillig/phpcs-variable-analysis.git",
- "reference": "c921498b474212fe4552928bbeb68d70250ce5e8"
+ "reference": "3b71162a6bf0cde2bff1752e40a1788d8273d049"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sirbrillig/phpcs-variable-analysis/zipball/c921498b474212fe4552928bbeb68d70250ce5e8",
- "reference": "c921498b474212fe4552928bbeb68d70250ce5e8",
+ "url": "https://api.github.com/repos/sirbrillig/phpcs-variable-analysis/zipball/3b71162a6bf0cde2bff1752e40a1788d8273d049",
+ "reference": "3b71162a6bf0cde2bff1752e40a1788d8273d049",
"shasum": ""
},
"require": {
"php": ">=5.4.0",
- "squizlabs/php_codesniffer": "^3.5"
+ "squizlabs/php_codesniffer": "^3.5.6"
},
"require-dev": {
- "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
- "limedeck/phpunit-detailed-printer": "^3.1 || ^4.0 || ^5.0",
- "phpstan/phpstan": "^0.11.8",
- "phpunit/phpunit": "^5.0 || ^6.5 || ^7.0 || ^8.0",
- "sirbrillig/phpcs-import-detection": "^1.1"
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.7 || ^1.0",
+ "phpcsstandards/phpcsdevcs": "^1.1",
+ "phpstan/phpstan": "^1.7",
+ "phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.5 || ^7.0 || ^8.0 || ^9.0",
+ "sirbrillig/phpcs-import-detection": "^1.1",
+ "vimeo/psalm": "^0.2 || ^0.3 || ^1.1 || ^4.24 || ^5.0@beta"
},
"type": "phpcodesniffer-standard",
"autoload": {
@@ -2054,25 +2432,29 @@
}
],
"description": "A PHPCS sniff to detect problems with variables.",
+ "keywords": [
+ "phpcs",
+ "static analysis"
+ ],
"support": {
"issues": "https://github.com/sirbrillig/phpcs-variable-analysis/issues",
"source": "https://github.com/sirbrillig/phpcs-variable-analysis",
"wiki": "https://github.com/sirbrillig/phpcs-variable-analysis/wiki"
},
- "time": "2022-02-21T17:01:13+00:00"
+ "time": "2023-08-05T23:46:11+00:00"
},
{
"name": "squizlabs/php_codesniffer",
- "version": "3.7.1",
+ "version": "3.8.1",
"source": {
"type": "git",
- "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
- "reference": "1359e176e9307e906dc3d890bcc9603ff6d90619"
+ "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git",
+ "reference": "14f5fff1e64118595db5408e946f3a22c75807f7"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/1359e176e9307e906dc3d890bcc9603ff6d90619",
- "reference": "1359e176e9307e906dc3d890bcc9603ff6d90619",
+ "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/14f5fff1e64118595db5408e946f3a22c75807f7",
+ "reference": "14f5fff1e64118595db5408e946f3a22c75807f7",
"shasum": ""
},
"require": {
@@ -2082,11 +2464,11 @@
"php": ">=5.4.0"
},
"require-dev": {
- "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
+ "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4"
},
"bin": [
- "bin/phpcs",
- "bin/phpcbf"
+ "bin/phpcbf",
+ "bin/phpcs"
],
"type": "library",
"extra": {
@@ -2101,40 +2483,69 @@
"authors": [
{
"name": "Greg Sherwood",
- "role": "lead"
+ "role": "Former lead"
+ },
+ {
+ "name": "Juliette Reinders Folmer",
+ "role": "Current lead"
+ },
+ {
+ "name": "Contributors",
+ "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer/graphs/contributors"
}
],
"description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
- "homepage": "https://github.com/squizlabs/PHP_CodeSniffer",
+ "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer",
"keywords": [
"phpcs",
- "standards"
+ "standards",
+ "static analysis"
],
"support": {
- "issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues",
- "source": "https://github.com/squizlabs/PHP_CodeSniffer",
- "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki"
+ "issues": "https://github.com/PHPCSStandards/PHP_CodeSniffer/issues",
+ "security": "https://github.com/PHPCSStandards/PHP_CodeSniffer/security/policy",
+ "source": "https://github.com/PHPCSStandards/PHP_CodeSniffer",
+ "wiki": "https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki"
},
- "time": "2022-06-18T07:21:10+00:00"
+ "funding": [
+ {
+ "url": "https://github.com/PHPCSStandards",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/jrfnl",
+ "type": "github"
+ },
+ {
+ "url": "https://opencollective.com/php_codesniffer",
+ "type": "open_collective"
+ }
+ ],
+ "time": "2024-01-11T20:47:48+00:00"
},
{
"name": "symfony/finder",
- "version": "v3.4.47",
+ "version": "v3.3.6",
"source": {
"type": "git",
"url": "https://github.com/symfony/finder.git",
- "reference": "b6b6ad3db3edb1b4b1c1896b1975fb684994de6e"
+ "reference": "baea7f66d30854ad32988c11a09d7ffd485810c4"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/finder/zipball/b6b6ad3db3edb1b4b1c1896b1975fb684994de6e",
- "reference": "b6b6ad3db3edb1b4b1c1896b1975fb684994de6e",
+ "url": "https://api.github.com/repos/symfony/finder/zipball/baea7f66d30854ad32988c11a09d7ffd485810c4",
+ "reference": "baea7f66d30854ad32988c11a09d7ffd485810c4",
"shasum": ""
},
"require": {
- "php": "^5.5.9|>=7.0.8"
+ "php": ">=5.5.9"
},
"type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "3.3-dev"
+ }
+ },
"autoload": {
"psr-4": {
"Symfony\\Component\\Finder\\": ""
@@ -2160,23 +2571,9 @@
"description": "Symfony Finder Component",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/finder/tree/v3.4.47"
+ "source": "https://github.com/symfony/finder/tree/3.3"
},
- "funding": [
- {
- "url": "https://symfony.com/sponsor",
- "type": "custom"
- },
- {
- "url": "https://github.com/fabpot",
- "type": "github"
- },
- {
- "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
- "type": "tidelift"
- }
- ],
- "time": "2020-11-16T17:02:08+00:00"
+ "time": "2017-06-01T21:01:25+00:00"
},
{
"name": "symfony/polyfill-ctype",
@@ -2258,75 +2655,48 @@
"time": "2020-10-23T09:01:57+00:00"
},
{
- "name": "symfony/yaml",
- "version": "v3.4.47",
+ "name": "theseer/tokenizer",
+ "version": "1.1.3",
"source": {
"type": "git",
- "url": "https://github.com/symfony/yaml.git",
- "reference": "88289caa3c166321883f67fe5130188ebbb47094"
+ "url": "https://github.com/theseer/tokenizer.git",
+ "reference": "11336f6f84e16a720dae9d8e6ed5019efa85a0f9"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/yaml/zipball/88289caa3c166321883f67fe5130188ebbb47094",
- "reference": "88289caa3c166321883f67fe5130188ebbb47094",
+ "url": "https://api.github.com/repos/theseer/tokenizer/zipball/11336f6f84e16a720dae9d8e6ed5019efa85a0f9",
+ "reference": "11336f6f84e16a720dae9d8e6ed5019efa85a0f9",
"shasum": ""
},
"require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-ctype": "~1.8"
- },
- "conflict": {
- "symfony/console": "<3.4"
- },
- "require-dev": {
- "symfony/console": "~3.4|~4.0"
- },
- "suggest": {
- "symfony/console": "For validating YAML files using the lint command"
+ "ext-dom": "*",
+ "ext-tokenizer": "*",
+ "ext-xmlwriter": "*",
+ "php": "^7.0"
},
"type": "library",
"autoload": {
- "psr-4": {
- "Symfony\\Component\\Yaml\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
+ "classmap": [
+ "src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "MIT"
+ "BSD-3-Clause"
],
"authors": [
{
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
+ "name": "Arne Blankerts",
+ "email": "arne@blankerts.de",
+ "role": "Developer"
}
],
- "description": "Symfony Yaml Component",
- "homepage": "https://symfony.com",
+ "description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
"support": {
- "source": "https://github.com/symfony/yaml/tree/v3.4.47"
+ "issues": "https://github.com/theseer/tokenizer/issues",
+ "source": "https://github.com/theseer/tokenizer/tree/master"
},
- "funding": [
- {
- "url": "https://symfony.com/sponsor",
- "type": "custom"
- },
- {
- "url": "https://github.com/fabpot",
- "type": "github"
- },
- {
- "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
- "type": "tidelift"
- }
- ],
- "time": "2020-10-24T10:57:07+00:00"
+ "time": "2019-06-13T22:48:21+00:00"
},
{
"name": "togos/gitignore",
@@ -2471,16 +2841,16 @@
},
{
"name": "wp-cli/php-cli-tools",
- "version": "v0.11.21",
+ "version": "v0.11.22",
"source": {
"type": "git",
"url": "https://github.com/wp-cli/php-cli-tools.git",
- "reference": "b3457a8d60cd0b1c48cab76ad95df136d266f0b6"
+ "reference": "a6bb94664ca36d0962f9c2ff25591c315a550c51"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/wp-cli/php-cli-tools/zipball/b3457a8d60cd0b1c48cab76ad95df136d266f0b6",
- "reference": "b3457a8d60cd0b1c48cab76ad95df136d266f0b6",
+ "url": "https://api.github.com/repos/wp-cli/php-cli-tools/zipball/a6bb94664ca36d0962f9c2ff25591c315a550c51",
+ "reference": "a6bb94664ca36d0962f9c2ff25591c315a550c51",
"shasum": ""
},
"require": {
@@ -2528,9 +2898,9 @@
],
"support": {
"issues": "https://github.com/wp-cli/php-cli-tools/issues",
- "source": "https://github.com/wp-cli/php-cli-tools/tree/v0.11.21"
+ "source": "https://github.com/wp-cli/php-cli-tools/tree/v0.11.22"
},
- "time": "2023-09-29T15:28:10+00:00"
+ "time": "2023-12-03T19:25:05+00:00"
},
{
"name": "wp-cli/wp-cli",
@@ -2604,30 +2974,38 @@
},
{
"name": "wp-coding-standards/wpcs",
- "version": "2.3.0",
+ "version": "3.0.1",
"source": {
"type": "git",
"url": "https://github.com/WordPress/WordPress-Coding-Standards.git",
- "reference": "7da1894633f168fe244afc6de00d141f27517b62"
+ "reference": "b4caf9689f1a0e4a4c632679a44e638c1c67aff1"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/7da1894633f168fe244afc6de00d141f27517b62",
- "reference": "7da1894633f168fe244afc6de00d141f27517b62",
+ "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/b4caf9689f1a0e4a4c632679a44e638c1c67aff1",
+ "reference": "b4caf9689f1a0e4a4c632679a44e638c1c67aff1",
"shasum": ""
},
"require": {
+ "ext-filter": "*",
+ "ext-libxml": "*",
+ "ext-tokenizer": "*",
+ "ext-xmlreader": "*",
"php": ">=5.4",
- "squizlabs/php_codesniffer": "^3.3.1"
+ "phpcsstandards/phpcsextra": "^1.1.0",
+ "phpcsstandards/phpcsutils": "^1.0.8",
+ "squizlabs/php_codesniffer": "^3.7.2"
},
"require-dev": {
- "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || ^0.6",
+ "php-parallel-lint/php-console-highlighter": "^1.0.0",
+ "php-parallel-lint/php-parallel-lint": "^1.3.2",
"phpcompatibility/php-compatibility": "^9.0",
- "phpcsstandards/phpcsdevtools": "^1.0",
+ "phpcsstandards/phpcsdevtools": "^1.2.0",
"phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
},
"suggest": {
- "dealerdirect/phpcodesniffer-composer-installer": "^0.6 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically."
+ "ext-iconv": "For improved results",
+ "ext-mbstring": "For improved results"
},
"type": "phpcodesniffer-standard",
"notification-url": "https://packagist.org/downloads/",
@@ -2644,6 +3022,7 @@
"keywords": [
"phpcs",
"standards",
+ "static analysis",
"wordpress"
],
"support": {
@@ -2651,20 +3030,26 @@
"source": "https://github.com/WordPress/WordPress-Coding-Standards",
"wiki": "https://github.com/WordPress/WordPress-Coding-Standards/wiki"
},
- "time": "2020-05-13T23:57:56+00:00"
+ "funding": [
+ {
+ "url": "https://opencollective.com/thewpcc/contribute/wp-php-63406",
+ "type": "custom"
+ }
+ ],
+ "time": "2023-09-14T07:06:09+00:00"
},
{
"name": "yoast/phpunit-polyfills",
- "version": "1.0.3",
+ "version": "1.1.0",
"source": {
"type": "git",
"url": "https://github.com/Yoast/PHPUnit-Polyfills.git",
- "reference": "5ea3536428944955f969bc764bbe09738e151ada"
+ "reference": "224e4a1329c03d8bad520e3fc4ec980034a4b212"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/Yoast/PHPUnit-Polyfills/zipball/5ea3536428944955f969bc764bbe09738e151ada",
- "reference": "5ea3536428944955f969bc764bbe09738e151ada",
+ "url": "https://api.github.com/repos/Yoast/PHPUnit-Polyfills/zipball/224e4a1329c03d8bad520e3fc4ec980034a4b212",
+ "reference": "224e4a1329c03d8bad520e3fc4ec980034a4b212",
"shasum": ""
},
"require": {
@@ -2672,13 +3057,12 @@
"phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.0"
},
"require-dev": {
- "yoast/yoastcs": "^2.2.0"
+ "yoast/yoastcs": "^2.3.0"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "1.x-dev",
- "dev-develop": "1.x-dev"
+ "dev-main": "2.x-dev"
}
},
"autoload": {
@@ -2712,42 +3096,44 @@
"issues": "https://github.com/Yoast/PHPUnit-Polyfills/issues",
"source": "https://github.com/Yoast/PHPUnit-Polyfills"
},
- "time": "2021-11-23T01:37:03+00:00"
+ "time": "2023-08-19T14:25:08+00:00"
},
{
"name": "yoast/wp-test-utils",
- "version": "0.2.2",
+ "version": "1.2.0",
"source": {
"type": "git",
"url": "https://github.com/Yoast/wp-test-utils.git",
- "reference": "896f7640d86162ff7a0dc6ce59f8837f284521c5"
+ "reference": "2e0f62e0281e4859707c5f13b7da1422aa1c8f7b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/Yoast/wp-test-utils/zipball/896f7640d86162ff7a0dc6ce59f8837f284521c5",
- "reference": "896f7640d86162ff7a0dc6ce59f8837f284521c5",
+ "url": "https://api.github.com/repos/Yoast/wp-test-utils/zipball/2e0f62e0281e4859707c5f13b7da1422aa1c8f7b",
+ "reference": "2e0f62e0281e4859707c5f13b7da1422aa1c8f7b",
"shasum": ""
},
"require": {
- "brain/monkey": "^2.6.0",
+ "brain/monkey": "^2.6.1",
"php": ">=5.6",
- "yoast/phpunit-polyfills": "^1.0.0"
+ "yoast/phpunit-polyfills": "^1.1.0"
},
"require-dev": {
- "php-parallel-lint/php-console-highlighter": "^0.5",
- "php-parallel-lint/php-parallel-lint": "^1.3.0",
- "yoast/yoastcs": "^2.1.0"
+ "yoast/yoastcs": "^2.3.1"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "1.x-dev",
- "dev-develop": "1.x-dev"
+ "dev-develop": "1.x-dev",
+ "dev-main": "1.x-dev"
}
},
"autoload": {
"classmap": [
"src/"
+ ],
+ "exclude-from-classmap": [
+ "/src/WPIntegration/TestCase.php",
+ "/src/WPIntegration/TestCaseNoPolyfills.php"
]
},
"notification-url": "https://packagist.org/downloads/",
@@ -2771,6 +3157,7 @@
"brainmonkey",
"integration-testing",
"phpunit",
+ "testing",
"unit-testing",
"wordpress"
],
@@ -2778,7 +3165,7 @@
"issues": "https://github.com/Yoast/wp-test-utils/issues",
"source": "https://github.com/Yoast/wp-test-utils"
},
- "time": "2021-06-21T03:45:02+00:00"
+ "time": "2023-09-27T10:25:08+00:00"
}
],
"aliases": [],
@@ -2787,12 +3174,12 @@
"prefer-stable": true,
"prefer-lowest": false,
"platform": {
- "php": "^5.6 || ^7.0 || ^8.0",
+ "php": "^7.0 || ^8.0",
"ext-json": "*"
},
"platform-dev": [],
"platform-overrides": {
- "php": "5.6"
+ "php": "7.0"
},
- "plugin-api-version": "2.3.0"
+ "plugin-api-version": "2.6.0"
}
diff --git a/integrations/class-wp-service-worker-admin-assets-integration.php b/integrations/class-wp-service-worker-admin-assets-integration.php
index 8c19d3d65..5ab4feff0 100644
--- a/integrations/class-wp-service-worker-admin-assets-integration.php
+++ b/integrations/class-wp-service-worker-admin-assets-integration.php
@@ -140,13 +140,13 @@ protected function get_tinymce_file_list() {
/**
* Get routes from file paths list.
*
- * @param string[] $list List of file paths.
+ * @param string[] $paths List of file paths.
* @param string $folder Folder -- either 'wp-admin' or 'wp-includes'.
* @return array List of routes.
*/
- protected function get_routes_from_file_list( $list, $folder ) {
+ protected function get_routes_from_file_list( $paths, $folder ) {
$routes = array();
- foreach ( $list as $filename ) {
+ foreach ( $paths as $filename ) {
$ext = pathinfo( $filename, PATHINFO_EXTENSION );
if ( ! in_array( $ext, array( 'png', 'gif', 'svg' ), true ) ) {
continue;
diff --git a/integrations/class-wp-service-worker-custom-header-integration.php b/integrations/class-wp-service-worker-custom-header-integration.php
index 02b771b8c..5acb86f18 100644
--- a/integrations/class-wp-service-worker-custom-header-integration.php
+++ b/integrations/class-wp-service-worker-custom-header-integration.php
@@ -36,10 +36,8 @@ public function register( WP_Service_Worker_Scripts $scripts ) {
} elseif ( ! empty( $_wp_default_headers ) ) {
if ( 'random-default-image' === $header_image_mod ) {
$headers = $_wp_default_headers;
- } else {
- if ( current_theme_supports( 'custom-header', 'random-default' ) ) {
+ } elseif ( current_theme_supports( 'custom-header', 'random-default' ) ) {
$headers = $_wp_default_headers;
- }
}
}
diff --git a/package.json b/package.json
index 4d9ff6043..e08a2c28b 100644
--- a/package.json
+++ b/package.json
@@ -53,8 +53,8 @@
"lint:pkg-json": "wp-scripts lint-pkg-json --ignorePath .gitignore",
"lint:staged": "lint-staged",
"test": "npm-run-all --parallel test:*",
- "test:php": "wp-env run phpunit 'WORDPRESS_TABLE_PREFIX=wptests_ /var/www/html/wp-content/plugins/pwa/vendor/bin/phpunit -c /var/www/html/wp-content/plugins/pwa/phpunit.xml.dist $npm_config_args'",
- "test:php:xdebug": "wp-env run tests-wordpress 'env PHP_IDE_CONFIG=serverName=pwa WORDPRESS_TABLE_PREFIX=wptests_ WP_PHPUNIT__TESTS_CONFIG=/var/www/html/phpunit-wp-config.php /var/www/html/wp-content/plugins/pwa/vendor/bin/phpunit -c /var/www/html/wp-content/plugins/pwa/phpunit.xml.dist $npm_config_args'",
+ "test:php": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/pwa/ env WORDPRESS_TABLE_PREFIX=wptests_ vendor/bin/phpunit",
+ "test:php:xdebug": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/pwa/ env WORDPRESS_TABLE_PREFIX=wptests_ PHP_IDE_CONFIG=serverName=localhost vendor/bin/phpunit",
"prepare": "husky install",
"env:clean": "wp-env clean all",
"env:destroy": "wp-env destroy",
diff --git a/pwa.php b/pwa.php
index 5b909da62..31cee7373 100644
--- a/pwa.php
+++ b/pwa.php
@@ -19,7 +19,7 @@
define( 'PWA_VERSION', '0.8.0-alpha' );
define( 'PWA_PLUGIN_FILE', __FILE__ );
-define( 'PWA_PLUGIN_DIR', dirname( __FILE__ ) );
+define( 'PWA_PLUGIN_DIR', __DIR__ );
define( 'PWA_WORKBOX_VERSION', json_decode( file_get_contents( PWA_PLUGIN_DIR . '/package.json' ), true )['devDependencies']['workbox-cli'] ); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents,PHPCompatibility.Syntax.NewFunctionArrayDereferencing.Found -- Replaced with version literal build.
define( 'PWA_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
index 4280dfdb9..33b5a75cc 100644
--- a/tests/bootstrap.php
+++ b/tests/bootstrap.php
@@ -5,27 +5,18 @@
* @package PWA
*/
-define( 'TESTS_PLUGIN_DIR', dirname( __DIR__ ) );
+use Yoast\WPTestUtils\WPIntegration;
-// Detect where to load the WordPress tests environment from.
-if ( false !== getenv( 'WP_TESTS_DIR' ) ) {
- $_test_root = getenv( 'WP_TESTS_DIR' );
-} elseif ( false !== getenv( 'WP_DEVELOP_DIR' ) ) {
- $_test_root = getenv( 'WP_DEVELOP_DIR' ) . '/tests/phpunit';
-} elseif ( file_exists( '/tmp/wordpress-tests/includes/bootstrap.php' ) ) {
- $_test_root = '/tmp/wordpress-tests';
-} elseif ( file_exists( '/var/www/wordpress-develop/tests/phpunit' ) ) {
- $_test_root = '/var/www/wordpress-develop/tests/phpunit';
-} else {
- $_test_root = dirname( dirname( dirname( dirname( TESTS_PLUGIN_DIR ) ) ) ) . '/tests/phpunit';
-}
+define( 'TESTS_PLUGIN_DIR', dirname( __DIR__ ) );
// When run in wp-env context, set the test config file path.
if ( ! defined( 'WP_TESTS_CONFIG_FILE_PATH' ) && false !== getenv( 'WP_PHPUNIT__TESTS_CONFIG' ) ) {
define( 'WP_TESTS_CONFIG_FILE_PATH', getenv( 'WP_PHPUNIT__TESTS_CONFIG' ) );
}
-require $_test_root . '/includes/functions.php';
+require_once TESTS_PLUGIN_DIR . '/vendor/yoast/wp-test-utils/src/WPIntegration/bootstrap-functions.php';
+$_tests_dir = WPIntegration\get_path_to_wp_test_dir();
+require_once $_tests_dir . '/includes/functions.php';
/**
* Force plugins defined in a constant (supplied by phpunit.xml) to be active at runtime.
@@ -66,10 +57,24 @@ function pwa_unit_test_load_plugin_file() {
*/
define( 'WP_CLI_ROOT', TESTS_PLUGIN_DIR . '/vendor/wp-cli/wp-cli' );
define( 'WP_CLI_VENDOR_DIR', TESTS_PLUGIN_DIR . '/vendor' );
-require_once WP_CLI_ROOT . '/php/utils.php';
-$logger = new WP_CLI\Loggers\Regular( true );
-WP_CLI::set_logger( $logger );
+/*
+ * Load WordPress, which will load the Composer autoload file, and load the MockObject autoloader after that.
+ */
+WPIntegration\bootstrap_it();
+
+if ( file_exists( WP_CLI_ROOT . '/php/utils.php' ) ) {
+ require_once WP_CLI_ROOT . '/php/utils.php';
+
+ $logger = new WP_CLI\Loggers\Regular( true );
+ WP_CLI::set_logger( $logger );
+}
-// Start up the WP testing environment.
-require $_test_root . '/includes/bootstrap.php';
+// Fix up the SERVER_PORT which was just clobbered by tests_reset__SERVER().
+if ( defined( 'WP_HOME' ) ) {
+ $port = wp_parse_url( WP_HOME, PHP_URL_PORT );
+ if ( ! $port ) {
+ $port = '80';
+ }
+ $_SERVER['SERVER_PORT'] = $port;
+}
diff --git a/tests/components/test-class-wp-service-worker-caching-routes.php b/tests/components/test-class-wp-service-worker-caching-routes.php
index ebaad84e3..fecf993d6 100644
--- a/tests/components/test-class-wp-service-worker-caching-routes.php
+++ b/tests/components/test-class-wp-service-worker-caching-routes.php
@@ -26,8 +26,8 @@ class Test_WP_Service_Worker_Caching_Routes extends TestCase {
*
* @inheritdoc
*/
- public function setUp() {
- parent::setUp();
+ public function set_up() {
+ parent::set_up();
$this->instance = new WP_Service_Worker_Caching_Routes();
}
diff --git a/tests/components/test-class-wp-service-worker-precaching-routes.php b/tests/components/test-class-wp-service-worker-precaching-routes.php
index 377547073..3c167802d 100644
--- a/tests/components/test-class-wp-service-worker-precaching-routes.php
+++ b/tests/components/test-class-wp-service-worker-precaching-routes.php
@@ -26,8 +26,8 @@ class Test_WP_Service_Worker_Precaching_Routes extends TestCase {
*
* @inheritdoc
*/
- public function setUp() {
- parent::setUp();
+ public function set_up() {
+ parent::set_up();
$this->instance = new WP_Service_Worker_Precaching_Routes();
}
diff --git a/tests/test-class-wp-customize-manager.php b/tests/test-class-wp-customize-manager.php
index f89a65674..ba1d5b6be 100644
--- a/tests/test-class-wp-customize-manager.php
+++ b/tests/test-class-wp-customize-manager.php
@@ -19,13 +19,20 @@ class Test_WP_Customize_Manager extends TestCase {
*/
public $wp_customize;
+ /**
+ * User ID.
+ *
+ * @var int
+ */
+ public $user_id;
+
/**
* Setup.
*
* @inheritdoc
*/
- public function setUp() {
- parent::setUp();
+ public function set_up() {
+ parent::set_up();
$this->user_id = self::factory()->user->create( array( 'role' => 'administrator' ) );
wp_set_current_user( $this->user_id );
@@ -39,10 +46,10 @@ public function setUp() {
/**
* Tear down.
*/
- public function tearDown() {
+ public function tear_down() {
$this->wp_customize = null;
unset( $GLOBALS['wp_customize'] );
- parent::tearDown();
+ parent::tear_down();
}
/**
diff --git a/tests/test-class-wp-service-worker-scripts.php b/tests/test-class-wp-service-worker-scripts.php
index b22a66ecf..226f7712a 100644
--- a/tests/test-class-wp-service-worker-scripts.php
+++ b/tests/test-class-wp-service-worker-scripts.php
@@ -24,9 +24,9 @@ class Test_WP_Service_Worker_Scripts extends TestCase {
*
* @inheritdoc
*/
- public function setUp() {
+ public function set_up() {
global $wp_actions, $wp_service_workers;
- parent::setUp();
+ parent::set_up();
unset( $wp_actions['wp_default_service_workers'] );
$wp_service_workers = null;
@@ -36,8 +36,8 @@ public function setUp() {
/**
* Tear down.
*/
- public function tearDown() {
- parent::tearDown();
+ public function tear_down() {
+ parent::tear_down();
unset( $GLOBALS['wp_service_workers'] );
}
diff --git a/tests/test-class-wp-service-workers.php b/tests/test-class-wp-service-workers.php
index 465eb5a69..a50e9c43d 100644
--- a/tests/test-class-wp-service-workers.php
+++ b/tests/test-class-wp-service-workers.php
@@ -24,9 +24,9 @@ class Test_WP_Service_Workers extends TestCase {
*
* @inheritdoc
*/
- public function setUp() {
+ public function set_up() {
global $wp_actions, $wp_service_workers;
- parent::setUp();
+ parent::set_up();
unset( $wp_actions['wp_default_service_workers'] );
$wp_service_workers = null;
@@ -36,8 +36,8 @@ public function setUp() {
/**
* Tear down.
*/
- public function tearDown() {
- parent::tearDown();
+ public function tear_down() {
+ parent::tear_down();
unset( $GLOBALS['wp_service_workers'] );
}
diff --git a/tests/test-class-wp-web-app-manifest.php b/tests/test-class-wp-web-app-manifest.php
index 473e0fd16..05573f12b 100644
--- a/tests/test-class-wp-web-app-manifest.php
+++ b/tests/test-class-wp-web-app-manifest.php
@@ -61,8 +61,8 @@ class Test_WP_Web_App_Manifest extends TestCase {
*
* @inheritdoc
*/
- public function setUp() {
- parent::setUp();
+ public function set_up() {
+ parent::set_up();
$this->instance = new WP_Web_App_Manifest();
}
@@ -71,7 +71,7 @@ public function setUp() {
*
* @inheritdoc
*/
- public function tearDown() {
+ public function tear_down() {
global $_wp_theme_features;
// Calling remove_theme_mod( 'custom-background' ) causes an undefined index error unless 'wp-head-callback' is set.
@@ -80,7 +80,7 @@ public function tearDown() {
delete_option( 'site_icon' );
remove_filter( 'pwa_background_color', array( $this, 'mock_background_color' ) );
remove_filter( 'rest_api_init', array( $this->instance, 'register_manifest_rest_route' ) );
- parent::tearDown();
+ parent::tear_down();
}
/**
@@ -274,7 +274,7 @@ public function test_get_manifest() {
if ( ! isset( $purposes[ $icon['purpose'] ] ) ) {
$purposes[ $icon['purpose'] ] = 0;
} else {
- $purposes[ $icon['purpose'] ]++;
+ ++$purposes[ $icon['purpose'] ];
}
}
$this->assertEquals(
@@ -292,7 +292,7 @@ public function test_get_manifest() {
if ( ! isset( $purposes[ $icon['purpose'] ] ) ) {
$purposes[ $icon['purpose'] ] = 0;
} else {
- $purposes[ $icon['purpose'] ]++;
+ ++$purposes[ $icon['purpose'] ];
}
}
$this->assertEquals(
@@ -372,9 +372,10 @@ public function test_validate_site_icon_not_square() {
* @covers ::validate_site_icon()
*/
public function test_validate_site_icon_not_png() {
- if ( PHP_MAJOR_VERSION === 7 && PHP_MINOR_VERSION === 1 ) {
+ if ( version_compare( PHP_VERSION, '7.2.0', '<' ) ) {
$this->markTestSkipped( 'See https://github.com/GoogleChromeLabs/pwa-wp/pull/702#issuecomment-1042776987' );
}
+
$attachment_id = $this->factory()->attachment->create_upload_object( __DIR__ . '/data/images/512x512.jpg' );
update_option( 'site_icon', $attachment_id );
$actual_site_icon_validation_errors = $this->instance->validate_site_icon()->get_error_code();
diff --git a/tests/test-general-template.php b/tests/test-general-template.php
index a8cc77802..19f0a8385 100644
--- a/tests/test-general-template.php
+++ b/tests/test-general-template.php
@@ -22,21 +22,21 @@ public function get_error_template_request_data() {
'homepage' => array(
home_url( '/' ),
true,
- static function() {
+ static function () {
return ! is_500() && ! is_offline();
},
),
'500' => array(
home_url( '/?wp_error_template=500' ),
false,
- static function() {
+ static function () {
return is_500() && ! is_offline();
},
),
'offline' => array(
home_url( '/?wp_error_template=offline' ),
false,
- static function() {
+ static function () {
return ! is_500() && is_offline();
},
),
diff --git a/tests/test-service-workers.php b/tests/test-service-workers.php
index 4e9eb8090..ad4eaa58e 100644
--- a/tests/test-service-workers.php
+++ b/tests/test-service-workers.php
@@ -15,8 +15,8 @@ class Test_Service_Workers_Includes extends TestCase {
/**
* Tear down.
*/
- public function tearDown() {
- parent::tearDown();
+ public function tear_down() {
+ parent::tear_down();
$this->disable_permalinks();
}
diff --git a/wp-admin/admin.php b/wp-admin/admin.php
index 74dd908a4..2a1cfb726 100644
--- a/wp-admin/admin.php
+++ b/wp-admin/admin.php
@@ -12,7 +12,7 @@
*/
function pwa_serve_admin_error_template() {
add_filter( 'wp_doing_ajax', '__return_false' );
- require dirname( __FILE__ ) . '/error.php';
+ require __DIR__ . '/error.php';
exit;
}
add_action( 'wp_ajax_wp_error_template', 'pwa_serve_admin_error_template' );
diff --git a/wp-admin/options-reading-offline-browsing.php b/wp-admin/options-reading-offline-browsing.php
index a581e2bdc..bff0239b7 100644
--- a/wp-admin/options-reading-offline-browsing.php
+++ b/wp-admin/options-reading-offline-browsing.php
@@ -126,6 +126,5 @@ function print_admin_pointer() {
} );
'title_tagline',
'label' => __( 'Maskable icon', 'pwa' ),
'priority' => $site_icon_control->priority + 1,
- 'active_callback' => function() use ( $wp_customize ) {
+ 'active_callback' => function () use ( $wp_customize ) {
return (bool) $wp_customize->get_setting( 'site_icon' )->value();
},
)
diff --git a/wp-includes/class-wp-service-workers.php b/wp-includes/class-wp-service-workers.php
index d2042fed4..8c2125d8b 100644
--- a/wp-includes/class-wp-service-workers.php
+++ b/wp-includes/class-wp-service-workers.php
@@ -133,7 +133,7 @@ public function serve_request() {
wp_set_current_user( 0 );
// See wp_debug_mode() for how this is also done for REST API responses.
- @ini_set( 'display_errors', '0' ); // phpcs:ignore Generic.PHP.NoSilencedErrors.Discouraged, WordPress.PHP.NoSilencedErrors.Discouraged, WordPress.PHP.DiscouragedPHPFunctions.runtime_configuration_ini_set, WordPress.PHP.IniSet.display_errors_Blacklisted
+ @ini_set( 'display_errors', '0' ); // phpcs:ignore Generic.PHP.NoSilencedErrors.Discouraged, WordPress.PHP.NoSilencedErrors.Discouraged, WordPress.PHP.DiscouragedPHPFunctions.runtime_configuration_ini_set, WordPress.PHP.IniSet.display_errors_Disallowed
/*
* Per Workbox :
diff --git a/wp-includes/class-wp-web-app-manifest.php b/wp-includes/class-wp-web-app-manifest.php
index 3acb5c078..d6977e60c 100644
--- a/wp-includes/class-wp-web-app-manifest.php
+++ b/wp-includes/class-wp-web-app-manifest.php
@@ -81,7 +81,7 @@ public function init() {
public function manifest_link_and_meta() {
$manifest = $this->get_manifest();
?>
-
+
diff --git a/wp-includes/components/class-wp-service-worker-caching-routes.php b/wp-includes/components/class-wp-service-worker-caching-routes.php
index c2bb39434..e9ed320b4 100644
--- a/wp-includes/components/class-wp-service-worker-caching-routes.php
+++ b/wp-includes/components/class-wp-service-worker-caching-routes.php
@@ -355,16 +355,16 @@ public static function convert_snake_case_array_keys_to_camel_case( $original )
*
* @since 0.6
*
- * @param string $string Possibly snake_case string.
+ * @param string $str Possibly snake_case string.
* @return string CamelCase string.
*/
- protected static function convert_snake_case_to_camel_case( $string ) {
+ protected static function convert_snake_case_to_camel_case( $str ) {
return preg_replace_callback(
'/_[a-z]/',
static function ( $matches ) {
return strtoupper( ltrim( $matches[0], '_' ) );
},
- $string
+ $str
);
}
@@ -373,16 +373,16 @@ static function ( $matches ) {
*
* @since 0.6
*
- * @param string $string Possibly snake_case string.
+ * @param string $str Possibly snake_case string.
* @return string CamelCase string.
*/
- protected static function convert_camel_case_to_snake_case( $string ) {
+ protected static function convert_camel_case_to_snake_case( $str ) {
return preg_replace_callback(
'/(?<=.)([A-Z])/',
static function ( $matches ) {
return '_' . strtolower( $matches[0] );
},
- $string
+ $str
);
}
}
diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php
index 185deda58..c6e4e5f72 100644
--- a/wp-includes/general-template.php
+++ b/wp-includes/general-template.php
@@ -112,7 +112,7 @@ function wp_filter_robots_for_error_template( $robots ) {
*/
function wp_add_error_template_no_robots() {
if ( is_offline() || is_500() ) {
- wp_no_robots();
+ wp_no_robots(); // phpcs:ignore WordPress.WP.DeprecatedFunctions.wp_no_robotsFound
}
}
diff --git a/wp-includes/template.php b/wp-includes/template.php
index 4e73f6154..f0db11b23 100644
--- a/wp-includes/template.php
+++ b/wp-includes/template.php
@@ -25,10 +25,10 @@
*
* @param string|string[] $template_names Template file(s) to search for, in order.
* @param bool $load If true the template file will be loaded if it is found.
- * @param bool $require_once Whether to require_once or require. Default true. Has no effect if $load is false.
+ * @param bool $load_once Whether to require_once or require. Default true. Has no effect if $load is false.
* @return string The template filename if one is located.
*/
-function pwa_locate_template( $template_names, $load = false, $require_once = true ) {
+function pwa_locate_template( $template_names, $load = false, $load_once = true ) {
$located = '';
foreach ( (array) $template_names as $template_name ) {
if ( ! $template_name ) {
@@ -57,7 +57,7 @@ function pwa_locate_template( $template_names, $load = false, $require_once = tr
}
if ( $load && $located ) {
- load_template( $located, $require_once );
+ load_template( $located, $load_once );
}
return $located;