Changeset 51846
- Timestamp:
- 09/22/2021 12:09:05 AM (3 years ago)
- Location:
- branches/5.2
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.2/.github/workflows/phpunit-tests.yml
r50676 r51846 24 24 env: 25 25 PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: ${{ true }} 26 COMPOSER_INSTALL: ${{ false }}27 26 # Controls which NPM script to use for running PHPUnit tests. Options ar `php` and `php-composer`. 28 27 PHPUNIT_SCRIPT: php … … 140 139 - name: Get composer cache directory 141 140 id: composer-cache 142 if: ${{ env.COMPOSER_INSTALL == true }}143 141 run: echo "::set-output name=dir::$(composer config cache-files-dir)" 144 142 145 143 - name: Cache Composer dependencies 146 if: ${{ env.COMPOSER_INSTALL == true }}147 144 uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4 148 145 env: … … 153 150 154 151 - name: Install Composer dependencies 155 if: ${{ env.COMPOSER_INSTALL == true }} 156 run: | 157 docker-compose run --rm php composer --version 158 docker-compose run --rm php composer install 152 run: | 153 if [ ${{ env.LOCAL_PHP }} == '7.1-fpm' ]; then 154 docker-compose run --rm php composer update 155 git checkout -- composer.lock 156 elif [[ ${{ env.LOCAL_PHP }} == '5.6.20-fpm' || ${{ env.LOCAL_PHP }} == '5.6-fpm' || ${{ env.LOCAL_PHP }} == '7.0-fpm' ]]; then 157 docker-compose run --rm php composer require --dev phpunit/phpunit:"^5.7" --update-with-dependencies 158 git checkout -- composer.lock composer.json 159 else 160 docker-compose run --rm php composer install 161 fi 159 162 160 163 - name: Docker debug information -
branches/5.2/composer.json
r49514 r51846 12 12 "require-dev": { 13 13 "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7.0", 14 "wp-coding-standards/wpcs": "~2.0.0" 14 "wp-coding-standards/wpcs": "~2.0.0", 15 "phpunit/phpunit": "^5.7.21 || ^6.5 || ^7.5", 16 "yoast/phpunit-polyfills": "^1.0.1" 15 17 }, 16 18 "scripts": { -
branches/5.2/composer.lock
r49514 r51846 5 5 "This file is @generated automatically" 6 6 ], 7 "content-hash": " 0d68b3d8b17e827e096ecb10a063f34c",7 "content-hash": "18a1ef51400912b7d16141c34081901d", 8 8 "packages": [], 9 9 "packages-dev": [ … … 75 75 }, 76 76 { 77 "name": "doctrine/instantiator", 78 "version": "1.4.0", 79 "source": { 80 "type": "git", 81 "url": "https://github.com/doctrine/instantiator.git", 82 "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b" 83 }, 84 "dist": { 85 "type": "zip", 86 "url": "https://api.github.com/repos/doctrine/instantiator/zipball/d56bf6102915de5702778fe20f2de3b2fe570b5b", 87 "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b", 88 "shasum": "" 89 }, 90 "require": { 91 "php": "^7.1 || ^8.0" 92 }, 93 "require-dev": { 94 "doctrine/coding-standard": "^8.0", 95 "ext-pdo": "*", 96 "ext-phar": "*", 97 "phpbench/phpbench": "^0.13 || 1.0.0-alpha2", 98 "phpstan/phpstan": "^0.12", 99 "phpstan/phpstan-phpunit": "^0.12", 100 "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0" 101 }, 102 "type": "library", 103 "autoload": { 104 "psr-4": { 105 "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" 106 } 107 }, 108 "notification-url": "https://packagist.org/downloads/", 109 "license": [ 110 "MIT" 111 ], 112 "authors": [ 113 { 114 "name": "Marco Pivetta", 115 "email": "ocramius@gmail.com", 116 "homepage": "https://ocramius.github.io/" 117 } 118 ], 119 "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", 120 "homepage": "https://www.doctrine-project.org/projects/instantiator.html", 121 "keywords": [ 122 "constructor", 123 "instantiate" 124 ], 125 "support": { 126 "issues": "https://github.com/doctrine/instantiator/issues", 127 "source": "https://github.com/doctrine/instantiator/tree/1.4.0" 128 }, 129 "funding": [ 130 { 131 "url": "https://www.doctrine-project.org/sponsorship.html", 132 "type": "custom" 133 }, 134 { 135 "url": "https://www.patreon.com/phpdoctrine", 136 "type": "patreon" 137 }, 138 { 139 "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", 140 "type": "tidelift" 141 } 142 ], 143 "time": "2020-11-10T18:47:58+00:00" 144 }, 145 { 146 "name": "myclabs/deep-copy", 147 "version": "1.10.2", 148 "source": { 149 "type": "git", 150 "url": "https://github.com/myclabs/DeepCopy.git", 151 "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220" 152 }, 153 "dist": { 154 "type": "zip", 155 "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/776f831124e9c62e1a2c601ecc52e776d8bb7220", 156 "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220", 157 "shasum": "" 158 }, 159 "require": { 160 "php": "^7.1 || ^8.0" 161 }, 162 "replace": { 163 "myclabs/deep-copy": "self.version" 164 }, 165 "require-dev": { 166 "doctrine/collections": "^1.0", 167 "doctrine/common": "^2.6", 168 "phpunit/phpunit": "^7.1" 169 }, 170 "type": "library", 171 "autoload": { 172 "psr-4": { 173 "DeepCopy\\": "src/DeepCopy/" 174 }, 175 "files": [ 176 "src/DeepCopy/deep_copy.php" 177 ] 178 }, 179 "notification-url": "https://packagist.org/downloads/", 180 "license": [ 181 "MIT" 182 ], 183 "description": "Create deep copies (clones) of your objects", 184 "keywords": [ 185 "clone", 186 "copy", 187 "duplicate", 188 "object", 189 "object graph" 190 ], 191 "support": { 192 "issues": "https://github.com/myclabs/DeepCopy/issues", 193 "source": "https://github.com/myclabs/DeepCopy/tree/1.10.2" 194 }, 195 "funding": [ 196 { 197 "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", 198 "type": "tidelift" 199 } 200 ], 201 "time": "2020-11-13T09:40:50+00:00" 202 }, 203 { 204 "name": "phar-io/manifest", 205 "version": "1.0.3", 206 "source": { 207 "type": "git", 208 "url": "https://github.com/phar-io/manifest.git", 209 "reference": "7761fcacf03b4d4f16e7ccb606d4879ca431fcf4" 210 }, 211 "dist": { 212 "type": "zip", 213 "url": "https://api.github.com/repos/phar-io/manifest/zipball/7761fcacf03b4d4f16e7ccb606d4879ca431fcf4", 214 "reference": "7761fcacf03b4d4f16e7ccb606d4879ca431fcf4", 215 "shasum": "" 216 }, 217 "require": { 218 "ext-dom": "*", 219 "ext-phar": "*", 220 "phar-io/version": "^2.0", 221 "php": "^5.6 || ^7.0" 222 }, 223 "type": "library", 224 "extra": { 225 "branch-alias": { 226 "dev-master": "1.0.x-dev" 227 } 228 }, 229 "autoload": { 230 "classmap": [ 231 "src/" 232 ] 233 }, 234 "notification-url": "https://packagist.org/downloads/", 235 "license": [ 236 "BSD-3-Clause" 237 ], 238 "authors": [ 239 { 240 "name": "Arne Blankerts", 241 "email": "arne@blankerts.de", 242 "role": "Developer" 243 }, 244 { 245 "name": "Sebastian Heuer", 246 "email": "sebastian@phpeople.de", 247 "role": "Developer" 248 }, 249 { 250 "name": "Sebastian Bergmann", 251 "email": "sebastian@phpunit.de", 252 "role": "Developer" 253 } 254 ], 255 "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", 256 "support": { 257 "issues": "https://github.com/phar-io/manifest/issues", 258 "source": "https://github.com/phar-io/manifest/tree/master" 259 }, 260 "time": "2018-07-08T19:23:20+00:00" 261 }, 262 { 263 "name": "phar-io/version", 264 "version": "2.0.1", 265 "source": { 266 "type": "git", 267 "url": "https://github.com/phar-io/version.git", 268 "reference": "45a2ec53a73c70ce41d55cedef9063630abaf1b6" 269 }, 270 "dist": { 271 "type": "zip", 272 "url": "https://api.github.com/repos/phar-io/version/zipball/45a2ec53a73c70ce41d55cedef9063630abaf1b6", 273 "reference": "45a2ec53a73c70ce41d55cedef9063630abaf1b6", 274 "shasum": "" 275 }, 276 "require": { 277 "php": "^5.6 || ^7.0" 278 }, 279 "type": "library", 280 "autoload": { 281 "classmap": [ 282 "src/" 283 ] 284 }, 285 "notification-url": "https://packagist.org/downloads/", 286 "license": [ 287 "BSD-3-Clause" 288 ], 289 "authors": [ 290 { 291 "name": "Arne Blankerts", 292 "email": "arne@blankerts.de", 293 "role": "Developer" 294 }, 295 { 296 "name": "Sebastian Heuer", 297 "email": "sebastian@phpeople.de", 298 "role": "Developer" 299 }, 300 { 301 "name": "Sebastian Bergmann", 302 "email": "sebastian@phpunit.de", 303 "role": "Developer" 304 } 305 ], 306 "description": "Library for handling version information and constraints", 307 "support": { 308 "issues": "https://github.com/phar-io/version/issues", 309 "source": "https://github.com/phar-io/version/tree/master" 310 }, 311 "time": "2018-07-08T19:19:57+00:00" 312 }, 313 { 314 "name": "phpdocumentor/reflection-common", 315 "version": "2.1.0", 316 "source": { 317 "type": "git", 318 "url": "https://github.com/phpDocumentor/ReflectionCommon.git", 319 "reference": "6568f4687e5b41b054365f9ae03fcb1ed5f2069b" 320 }, 321 "dist": { 322 "type": "zip", 323 "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/6568f4687e5b41b054365f9ae03fcb1ed5f2069b", 324 "reference": "6568f4687e5b41b054365f9ae03fcb1ed5f2069b", 325 "shasum": "" 326 }, 327 "require": { 328 "php": ">=7.1" 329 }, 330 "type": "library", 331 "extra": { 332 "branch-alias": { 333 "dev-master": "2.x-dev" 334 } 335 }, 336 "autoload": { 337 "psr-4": { 338 "phpDocumentor\\Reflection\\": "src/" 339 } 340 }, 341 "notification-url": "https://packagist.org/downloads/", 342 "license": [ 343 "MIT" 344 ], 345 "authors": [ 346 { 347 "name": "Jaap van Otterdijk", 348 "email": "opensource@ijaap.nl" 349 } 350 ], 351 "description": "Common reflection classes used by phpdocumentor to reflect the code structure", 352 "homepage": "http://www.phpdoc.org", 353 "keywords": [ 354 "FQSEN", 355 "phpDocumentor", 356 "phpdoc", 357 "reflection", 358 "static analysis" 359 ], 360 "support": { 361 "issues": "https://github.com/phpDocumentor/ReflectionCommon/issues", 362 "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/master" 363 }, 364 "time": "2020-04-27T09:25:28+00:00" 365 }, 366 { 367 "name": "phpdocumentor/reflection-docblock", 368 "version": "4.3.4", 369 "source": { 370 "type": "git", 371 "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", 372 "reference": "da3fd972d6bafd628114f7e7e036f45944b62e9c" 373 }, 374 "dist": { 375 "type": "zip", 376 "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/da3fd972d6bafd628114f7e7e036f45944b62e9c", 377 "reference": "da3fd972d6bafd628114f7e7e036f45944b62e9c", 378 "shasum": "" 379 }, 380 "require": { 381 "php": "^7.0", 382 "phpdocumentor/reflection-common": "^1.0.0 || ^2.0.0", 383 "phpdocumentor/type-resolver": "~0.4 || ^1.0.0", 384 "webmozart/assert": "^1.0" 385 }, 386 "require-dev": { 387 "doctrine/instantiator": "^1.0.5", 388 "mockery/mockery": "^1.0", 389 "phpdocumentor/type-resolver": "0.4.*", 390 "phpunit/phpunit": "^6.4" 391 }, 392 "type": "library", 393 "extra": { 394 "branch-alias": { 395 "dev-master": "4.x-dev" 396 } 397 }, 398 "autoload": { 399 "psr-4": { 400 "phpDocumentor\\Reflection\\": [ 401 "src/" 402 ] 403 } 404 }, 405 "notification-url": "https://packagist.org/downloads/", 406 "license": [ 407 "MIT" 408 ], 409 "authors": [ 410 { 411 "name": "Mike van Riel", 412 "email": "me@mikevanriel.com" 413 } 414 ], 415 "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", 416 "support": { 417 "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", 418 "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/release/4.x" 419 }, 420 "time": "2019-12-28T18:55:12+00:00" 421 }, 422 { 423 "name": "phpdocumentor/type-resolver", 424 "version": "1.0.1", 425 "source": { 426 "type": "git", 427 "url": "https://github.com/phpDocumentor/TypeResolver.git", 428 "reference": "2e32a6d48972b2c1976ed5d8967145b6cec4a4a9" 429 }, 430 "dist": { 431 "type": "zip", 432 "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/2e32a6d48972b2c1976ed5d8967145b6cec4a4a9", 433 "reference": "2e32a6d48972b2c1976ed5d8967145b6cec4a4a9", 434 "shasum": "" 435 }, 436 "require": { 437 "php": "^7.1", 438 "phpdocumentor/reflection-common": "^2.0" 439 }, 440 "require-dev": { 441 "ext-tokenizer": "^7.1", 442 "mockery/mockery": "~1", 443 "phpunit/phpunit": "^7.0" 444 }, 445 "type": "library", 446 "extra": { 447 "branch-alias": { 448 "dev-master": "1.x-dev" 449 } 450 }, 451 "autoload": { 452 "psr-4": { 453 "phpDocumentor\\Reflection\\": "src" 454 } 455 }, 456 "notification-url": "https://packagist.org/downloads/", 457 "license": [ 458 "MIT" 459 ], 460 "authors": [ 461 { 462 "name": "Mike van Riel", 463 "email": "me@mikevanriel.com" 464 } 465 ], 466 "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", 467 "support": { 468 "issues": "https://github.com/phpDocumentor/TypeResolver/issues", 469 "source": "https://github.com/phpDocumentor/TypeResolver/tree/0.7.2" 470 }, 471 "time": "2019-08-22T18:11:29+00:00" 472 }, 473 { 474 "name": "phpspec/prophecy", 475 "version": "v1.10.3", 476 "source": { 477 "type": "git", 478 "url": "https://github.com/phpspec/prophecy.git", 479 "reference": "451c3cd1418cf640de218914901e51b064abb093" 480 }, 481 "dist": { 482 "type": "zip", 483 "url": "https://api.github.com/repos/phpspec/prophecy/zipball/451c3cd1418cf640de218914901e51b064abb093", 484 "reference": "451c3cd1418cf640de218914901e51b064abb093", 485 "shasum": "" 486 }, 487 "require": { 488 "doctrine/instantiator": "^1.0.2", 489 "php": "^5.3|^7.0", 490 "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0|^5.0", 491 "sebastian/comparator": "^1.2.3|^2.0|^3.0|^4.0", 492 "sebastian/recursion-context": "^1.0|^2.0|^3.0|^4.0" 493 }, 494 "require-dev": { 495 "phpspec/phpspec": "^2.5 || ^3.2", 496 "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1" 497 }, 498 "type": "library", 499 "extra": { 500 "branch-alias": { 501 "dev-master": "1.10.x-dev" 502 } 503 }, 504 "autoload": { 505 "psr-4": { 506 "Prophecy\\": "src/Prophecy" 507 } 508 }, 509 "notification-url": "https://packagist.org/downloads/", 510 "license": [ 511 "MIT" 512 ], 513 "authors": [ 514 { 515 "name": "Konstantin Kudryashov", 516 "email": "ever.zet@gmail.com", 517 "homepage": "http://everzet.com" 518 }, 519 { 520 "name": "Marcello Duarte", 521 "email": "marcello.duarte@gmail.com" 522 } 523 ], 524 "description": "Highly opinionated mocking framework for PHP 5.3+", 525 "homepage": "https://github.com/phpspec/prophecy", 526 "keywords": [ 527 "Double", 528 "Dummy", 529 "fake", 530 "mock", 531 "spy", 532 "stub" 533 ], 534 "support": { 535 "issues": "https://github.com/phpspec/prophecy/issues", 536 "source": "https://github.com/phpspec/prophecy/tree/v1.10.3" 537 }, 538 "time": "2020-03-05T15:02:03+00:00" 539 }, 540 { 541 "name": "phpunit/php-code-coverage", 542 "version": "6.1.4", 543 "source": { 544 "type": "git", 545 "url": "https://github.com/sebastianbergmann/php-code-coverage.git", 546 "reference": "807e6013b00af69b6c5d9ceb4282d0393dbb9d8d" 547 }, 548 "dist": { 549 "type": "zip", 550 "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/807e6013b00af69b6c5d9ceb4282d0393dbb9d8d", 551 "reference": "807e6013b00af69b6c5d9ceb4282d0393dbb9d8d", 552 "shasum": "" 553 }, 554 "require": { 555 "ext-dom": "*", 556 "ext-xmlwriter": "*", 557 "php": "^7.1", 558 "phpunit/php-file-iterator": "^2.0", 559 "phpunit/php-text-template": "^1.2.1", 560 "phpunit/php-token-stream": "^3.0", 561 "sebastian/code-unit-reverse-lookup": "^1.0.1", 562 "sebastian/environment": "^3.1 || ^4.0", 563 "sebastian/version": "^2.0.1", 564 "theseer/tokenizer": "^1.1" 565 }, 566 "require-dev": { 567 "phpunit/phpunit": "^7.0" 568 }, 569 "suggest": { 570 "ext-xdebug": "^2.6.0" 571 }, 572 "type": "library", 573 "extra": { 574 "branch-alias": { 575 "dev-master": "6.1-dev" 576 } 577 }, 578 "autoload": { 579 "classmap": [ 580 "src/" 581 ] 582 }, 583 "notification-url": "https://packagist.org/downloads/", 584 "license": [ 585 "BSD-3-Clause" 586 ], 587 "authors": [ 588 { 589 "name": "Sebastian Bergmann", 590 "email": "sebastian@phpunit.de", 591 "role": "lead" 592 } 593 ], 594 "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", 595 "homepage": "https://github.com/sebastianbergmann/php-code-coverage", 596 "keywords": [ 597 "coverage", 598 "testing", 599 "xunit" 600 ], 601 "support": { 602 "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", 603 "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/master" 604 }, 605 "time": "2018-10-31T16:06:48+00:00" 606 }, 607 { 608 "name": "phpunit/php-file-iterator", 609 "version": "2.0.4", 610 "source": { 611 "type": "git", 612 "url": "https://github.com/sebastianbergmann/php-file-iterator.git", 613 "reference": "28af674ff175d0768a5a978e6de83f697d4a7f05" 614 }, 615 "dist": { 616 "type": "zip", 617 "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/28af674ff175d0768a5a978e6de83f697d4a7f05", 618 "reference": "28af674ff175d0768a5a978e6de83f697d4a7f05", 619 "shasum": "" 620 }, 621 "require": { 622 "php": ">=7.1" 623 }, 624 "require-dev": { 625 "phpunit/phpunit": "^8.5" 626 }, 627 "type": "library", 628 "extra": { 629 "branch-alias": { 630 "dev-master": "2.0.x-dev" 631 } 632 }, 633 "autoload": { 634 "classmap": [ 635 "src/" 636 ] 637 }, 638 "notification-url": "https://packagist.org/downloads/", 639 "license": [ 640 "BSD-3-Clause" 641 ], 642 "authors": [ 643 { 644 "name": "Sebastian Bergmann", 645 "email": "sebastian@phpunit.de", 646 "role": "lead" 647 } 648 ], 649 "description": "FilterIterator implementation that filters files based on a list of suffixes.", 650 "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", 651 "keywords": [ 652 "filesystem", 653 "iterator" 654 ], 655 "support": { 656 "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", 657 "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/2.0.4" 658 }, 659 "funding": [ 660 { 661 "url": "https://github.com/sebastianbergmann", 662 "type": "github" 663 } 664 ], 665 "time": "2021-07-19T06:46:01+00:00" 666 }, 667 { 668 "name": "phpunit/php-text-template", 669 "version": "1.2.1", 670 "source": { 671 "type": "git", 672 "url": "https://github.com/sebastianbergmann/php-text-template.git", 673 "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" 674 }, 675 "dist": { 676 "type": "zip", 677 "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", 678 "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", 679 "shasum": "" 680 }, 681 "require": { 682 "php": ">=5.3.3" 683 }, 684 "type": "library", 685 "autoload": { 686 "classmap": [ 687 "src/" 688 ] 689 }, 690 "notification-url": "https://packagist.org/downloads/", 691 "license": [ 692 "BSD-3-Clause" 693 ], 694 "authors": [ 695 { 696 "name": "Sebastian Bergmann", 697 "email": "sebastian@phpunit.de", 698 "role": "lead" 699 } 700 ], 701 "description": "Simple template engine.", 702 "homepage": "https://github.com/sebastianbergmann/php-text-template/", 703 "keywords": [ 704 "template" 705 ], 706 "support": { 707 "issues": "https://github.com/sebastianbergmann/php-text-template/issues", 708 "source": "https://github.com/sebastianbergmann/php-text-template/tree/1.2.1" 709 }, 710 "time": "2015-06-21T13:50:34+00:00" 711 }, 712 { 713 "name": "phpunit/php-timer", 714 "version": "2.1.3", 715 "source": { 716 "type": "git", 717 "url": "https://github.com/sebastianbergmann/php-timer.git", 718 "reference": "2454ae1765516d20c4ffe103d85a58a9a3bd5662" 719 }, 720 "dist": { 721 "type": "zip", 722 "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/2454ae1765516d20c4ffe103d85a58a9a3bd5662", 723 "reference": "2454ae1765516d20c4ffe103d85a58a9a3bd5662", 724 "shasum": "" 725 }, 726 "require": { 727 "php": ">=7.1" 728 }, 729 "require-dev": { 730 "phpunit/phpunit": "^8.5" 731 }, 732 "type": "library", 733 "extra": { 734 "branch-alias": { 735 "dev-master": "2.1-dev" 736 } 737 }, 738 "autoload": { 739 "classmap": [ 740 "src/" 741 ] 742 }, 743 "notification-url": "https://packagist.org/downloads/", 744 "license": [ 745 "BSD-3-Clause" 746 ], 747 "authors": [ 748 { 749 "name": "Sebastian Bergmann", 750 "email": "sebastian@phpunit.de", 751 "role": "lead" 752 } 753 ], 754 "description": "Utility class for timing", 755 "homepage": "https://github.com/sebastianbergmann/php-timer/", 756 "keywords": [ 757 "timer" 758 ], 759 "support": { 760 "issues": "https://github.com/sebastianbergmann/php-timer/issues", 761 "source": "https://github.com/sebastianbergmann/php-timer/tree/2.1.3" 762 }, 763 "funding": [ 764 { 765 "url": "https://github.com/sebastianbergmann", 766 "type": "github" 767 } 768 ], 769 "time": "2020-11-30T08:20:02+00:00" 770 }, 771 { 772 "name": "phpunit/php-token-stream", 773 "version": "3.1.3", 774 "source": { 775 "type": "git", 776 "url": "https://github.com/sebastianbergmann/php-token-stream.git", 777 "reference": "9c1da83261628cb24b6a6df371b6e312b3954768" 778 }, 779 "dist": { 780 "type": "zip", 781 "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/9c1da83261628cb24b6a6df371b6e312b3954768", 782 "reference": "9c1da83261628cb24b6a6df371b6e312b3954768", 783 "shasum": "" 784 }, 785 "require": { 786 "ext-tokenizer": "*", 787 "php": ">=7.1" 788 }, 789 "require-dev": { 790 "phpunit/phpunit": "^7.0" 791 }, 792 "type": "library", 793 "extra": { 794 "branch-alias": { 795 "dev-master": "3.1-dev" 796 } 797 }, 798 "autoload": { 799 "classmap": [ 800 "src/" 801 ] 802 }, 803 "notification-url": "https://packagist.org/downloads/", 804 "license": [ 805 "BSD-3-Clause" 806 ], 807 "authors": [ 808 { 809 "name": "Sebastian Bergmann", 810 "email": "sebastian@phpunit.de" 811 } 812 ], 813 "description": "Wrapper around PHP's tokenizer extension.", 814 "homepage": "https://github.com/sebastianbergmann/php-token-stream/", 815 "keywords": [ 816 "tokenizer" 817 ], 818 "support": { 819 "issues": "https://github.com/sebastianbergmann/php-token-stream/issues", 820 "source": "https://github.com/sebastianbergmann/php-token-stream/tree/3.1.3" 821 }, 822 "funding": [ 823 { 824 "url": "https://github.com/sebastianbergmann", 825 "type": "github" 826 } 827 ], 828 "abandoned": true, 829 "time": "2021-07-26T12:15:06+00:00" 830 }, 831 { 832 "name": "phpunit/phpunit", 833 "version": "7.5.20", 834 "source": { 835 "type": "git", 836 "url": "https://github.com/sebastianbergmann/phpunit.git", 837 "reference": "9467db479d1b0487c99733bb1e7944d32deded2c" 838 }, 839 "dist": { 840 "type": "zip", 841 "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/9467db479d1b0487c99733bb1e7944d32deded2c", 842 "reference": "9467db479d1b0487c99733bb1e7944d32deded2c", 843 "shasum": "" 844 }, 845 "require": { 846 "doctrine/instantiator": "^1.1", 847 "ext-dom": "*", 848 "ext-json": "*", 849 "ext-libxml": "*", 850 "ext-mbstring": "*", 851 "ext-xml": "*", 852 "myclabs/deep-copy": "^1.7", 853 "phar-io/manifest": "^1.0.2", 854 "phar-io/version": "^2.0", 855 "php": "^7.1", 856 "phpspec/prophecy": "^1.7", 857 "phpunit/php-code-coverage": "^6.0.7", 858 "phpunit/php-file-iterator": "^2.0.1", 859 "phpunit/php-text-template": "^1.2.1", 860 "phpunit/php-timer": "^2.1", 861 "sebastian/comparator": "^3.0", 862 "sebastian/diff": "^3.0", 863 "sebastian/environment": "^4.0", 864 "sebastian/exporter": "^3.1", 865 "sebastian/global-state": "^2.0", 866 "sebastian/object-enumerator": "^3.0.3", 867 "sebastian/resource-operations": "^2.0", 868 "sebastian/version": "^2.0.1" 869 }, 870 "conflict": { 871 "phpunit/phpunit-mock-objects": "*" 872 }, 873 "require-dev": { 874 "ext-pdo": "*" 875 }, 876 "suggest": { 877 "ext-soap": "*", 878 "ext-xdebug": "*", 879 "phpunit/php-invoker": "^2.0" 880 }, 881 "bin": [ 882 "phpunit" 883 ], 884 "type": "library", 885 "extra": { 886 "branch-alias": { 887 "dev-master": "7.5-dev" 888 } 889 }, 890 "autoload": { 891 "classmap": [ 892 "src/" 893 ] 894 }, 895 "notification-url": "https://packagist.org/downloads/", 896 "license": [ 897 "BSD-3-Clause" 898 ], 899 "authors": [ 900 { 901 "name": "Sebastian Bergmann", 902 "email": "sebastian@phpunit.de", 903 "role": "lead" 904 } 905 ], 906 "description": "The PHP Unit Testing framework.", 907 "homepage": "https://phpunit.de/", 908 "keywords": [ 909 "phpunit", 910 "testing", 911 "xunit" 912 ], 913 "support": { 914 "issues": "https://github.com/sebastianbergmann/phpunit/issues", 915 "source": "https://github.com/sebastianbergmann/phpunit/tree/7.5.20" 916 }, 917 "time": "2020-01-08T08:45:45+00:00" 918 }, 919 { 920 "name": "sebastian/code-unit-reverse-lookup", 921 "version": "1.0.2", 922 "source": { 923 "type": "git", 924 "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", 925 "reference": "1de8cd5c010cb153fcd68b8d0f64606f523f7619" 926 }, 927 "dist": { 928 "type": "zip", 929 "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/1de8cd5c010cb153fcd68b8d0f64606f523f7619", 930 "reference": "1de8cd5c010cb153fcd68b8d0f64606f523f7619", 931 "shasum": "" 932 }, 933 "require": { 934 "php": ">=5.6" 935 }, 936 "require-dev": { 937 "phpunit/phpunit": "^8.5" 938 }, 939 "type": "library", 940 "extra": { 941 "branch-alias": { 942 "dev-master": "1.0.x-dev" 943 } 944 }, 945 "autoload": { 946 "classmap": [ 947 "src/" 948 ] 949 }, 950 "notification-url": "https://packagist.org/downloads/", 951 "license": [ 952 "BSD-3-Clause" 953 ], 954 "authors": [ 955 { 956 "name": "Sebastian Bergmann", 957 "email": "sebastian@phpunit.de" 958 } 959 ], 960 "description": "Looks up which function or method a line of code belongs to", 961 "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", 962 "support": { 963 "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", 964 "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/1.0.2" 965 }, 966 "funding": [ 967 { 968 "url": "https://github.com/sebastianbergmann", 969 "type": "github" 970 } 971 ], 972 "time": "2020-11-30T08:15:22+00:00" 973 }, 974 { 975 "name": "sebastian/comparator", 976 "version": "3.0.3", 977 "source": { 978 "type": "git", 979 "url": "https://github.com/sebastianbergmann/comparator.git", 980 "reference": "1071dfcef776a57013124ff35e1fc41ccd294758" 981 }, 982 "dist": { 983 "type": "zip", 984 "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/1071dfcef776a57013124ff35e1fc41ccd294758", 985 "reference": "1071dfcef776a57013124ff35e1fc41ccd294758", 986 "shasum": "" 987 }, 988 "require": { 989 "php": ">=7.1", 990 "sebastian/diff": "^3.0", 991 "sebastian/exporter": "^3.1" 992 }, 993 "require-dev": { 994 "phpunit/phpunit": "^8.5" 995 }, 996 "type": "library", 997 "extra": { 998 "branch-alias": { 999 "dev-master": "3.0-dev" 1000 } 1001 }, 1002 "autoload": { 1003 "classmap": [ 1004 "src/" 1005 ] 1006 }, 1007 "notification-url": "https://packagist.org/downloads/", 1008 "license": [ 1009 "BSD-3-Clause" 1010 ], 1011 "authors": [ 1012 { 1013 "name": "Sebastian Bergmann", 1014 "email": "sebastian@phpunit.de" 1015 }, 1016 { 1017 "name": "Jeff Welch", 1018 "email": "whatthejeff@gmail.com" 1019 }, 1020 { 1021 "name": "Volker Dusch", 1022 "email": "github@wallbash.com" 1023 }, 1024 { 1025 "name": "Bernhard Schussek", 1026 "email": "bschussek@2bepublished.at" 1027 } 1028 ], 1029 "description": "Provides the functionality to compare PHP values for equality", 1030 "homepage": "https://github.com/sebastianbergmann/comparator", 1031 "keywords": [ 1032 "comparator", 1033 "compare", 1034 "equality" 1035 ], 1036 "support": { 1037 "issues": "https://github.com/sebastianbergmann/comparator/issues", 1038 "source": "https://github.com/sebastianbergmann/comparator/tree/3.0.3" 1039 }, 1040 "funding": [ 1041 { 1042 "url": "https://github.com/sebastianbergmann", 1043 "type": "github" 1044 } 1045 ], 1046 "time": "2020-11-30T08:04:30+00:00" 1047 }, 1048 { 1049 "name": "sebastian/diff", 1050 "version": "3.0.3", 1051 "source": { 1052 "type": "git", 1053 "url": "https://github.com/sebastianbergmann/diff.git", 1054 "reference": "14f72dd46eaf2f2293cbe79c93cc0bc43161a211" 1055 }, 1056 "dist": { 1057 "type": "zip", 1058 "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/14f72dd46eaf2f2293cbe79c93cc0bc43161a211", 1059 "reference": "14f72dd46eaf2f2293cbe79c93cc0bc43161a211", 1060 "shasum": "" 1061 }, 1062 "require": { 1063 "php": ">=7.1" 1064 }, 1065 "require-dev": { 1066 "phpunit/phpunit": "^7.5 || ^8.0", 1067 "symfony/process": "^2 || ^3.3 || ^4" 1068 }, 1069 "type": "library", 1070 "extra": { 1071 "branch-alias": { 1072 "dev-master": "3.0-dev" 1073 } 1074 }, 1075 "autoload": { 1076 "classmap": [ 1077 "src/" 1078 ] 1079 }, 1080 "notification-url": "https://packagist.org/downloads/", 1081 "license": [ 1082 "BSD-3-Clause" 1083 ], 1084 "authors": [ 1085 { 1086 "name": "Sebastian Bergmann", 1087 "email": "sebastian@phpunit.de" 1088 }, 1089 { 1090 "name": "Kore Nordmann", 1091 "email": "mail@kore-nordmann.de" 1092 } 1093 ], 1094 "description": "Diff implementation", 1095 "homepage": "https://github.com/sebastianbergmann/diff", 1096 "keywords": [ 1097 "diff", 1098 "udiff", 1099 "unidiff", 1100 "unified diff" 1101 ], 1102 "support": { 1103 "issues": "https://github.com/sebastianbergmann/diff/issues", 1104 "source": "https://github.com/sebastianbergmann/diff/tree/3.0.3" 1105 }, 1106 "funding": [ 1107 { 1108 "url": "https://github.com/sebastianbergmann", 1109 "type": "github" 1110 } 1111 ], 1112 "time": "2020-11-30T07:59:04+00:00" 1113 }, 1114 { 1115 "name": "sebastian/environment", 1116 "version": "4.2.4", 1117 "source": { 1118 "type": "git", 1119 "url": "https://github.com/sebastianbergmann/environment.git", 1120 "reference": "d47bbbad83711771f167c72d4e3f25f7fcc1f8b0" 1121 }, 1122 "dist": { 1123 "type": "zip", 1124 "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/d47bbbad83711771f167c72d4e3f25f7fcc1f8b0", 1125 "reference": "d47bbbad83711771f167c72d4e3f25f7fcc1f8b0", 1126 "shasum": "" 1127 }, 1128 "require": { 1129 "php": ">=7.1" 1130 }, 1131 "require-dev": { 1132 "phpunit/phpunit": "^7.5" 1133 }, 1134 "suggest": { 1135 "ext-posix": "*" 1136 }, 1137 "type": "library", 1138 "extra": { 1139 "branch-alias": { 1140 "dev-master": "4.2-dev" 1141 } 1142 }, 1143 "autoload": { 1144 "classmap": [ 1145 "src/" 1146 ] 1147 }, 1148 "notification-url": "https://packagist.org/downloads/", 1149 "license": [ 1150 "BSD-3-Clause" 1151 ], 1152 "authors": [ 1153 { 1154 "name": "Sebastian Bergmann", 1155 "email": "sebastian@phpunit.de" 1156 } 1157 ], 1158 "description": "Provides functionality to handle HHVM/PHP environments", 1159 "homepage": "http://www.github.com/sebastianbergmann/environment", 1160 "keywords": [ 1161 "Xdebug", 1162 "environment", 1163 "hhvm" 1164 ], 1165 "support": { 1166 "issues": "https://github.com/sebastianbergmann/environment/issues", 1167 "source": "https://github.com/sebastianbergmann/environment/tree/4.2.4" 1168 }, 1169 "funding": [ 1170 { 1171 "url": "https://github.com/sebastianbergmann", 1172 "type": "github" 1173 } 1174 ], 1175 "time": "2020-11-30T07:53:42+00:00" 1176 }, 1177 { 1178 "name": "sebastian/exporter", 1179 "version": "3.1.3", 1180 "source": { 1181 "type": "git", 1182 "url": "https://github.com/sebastianbergmann/exporter.git", 1183 "reference": "6b853149eab67d4da22291d36f5b0631c0fd856e" 1184 }, 1185 "dist": { 1186 "type": "zip", 1187 "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/6b853149eab67d4da22291d36f5b0631c0fd856e", 1188 "reference": "6b853149eab67d4da22291d36f5b0631c0fd856e", 1189 "shasum": "" 1190 }, 1191 "require": { 1192 "php": ">=7.0", 1193 "sebastian/recursion-context": "^3.0" 1194 }, 1195 "require-dev": { 1196 "ext-mbstring": "*", 1197 "phpunit/phpunit": "^6.0" 1198 }, 1199 "type": "library", 1200 "extra": { 1201 "branch-alias": { 1202 "dev-master": "3.1.x-dev" 1203 } 1204 }, 1205 "autoload": { 1206 "classmap": [ 1207 "src/" 1208 ] 1209 }, 1210 "notification-url": "https://packagist.org/downloads/", 1211 "license": [ 1212 "BSD-3-Clause" 1213 ], 1214 "authors": [ 1215 { 1216 "name": "Sebastian Bergmann", 1217 "email": "sebastian@phpunit.de" 1218 }, 1219 { 1220 "name": "Jeff Welch", 1221 "email": "whatthejeff@gmail.com" 1222 }, 1223 { 1224 "name": "Volker Dusch", 1225 "email": "github@wallbash.com" 1226 }, 1227 { 1228 "name": "Adam Harvey", 1229 "email": "aharvey@php.net" 1230 }, 1231 { 1232 "name": "Bernhard Schussek", 1233 "email": "bschussek@gmail.com" 1234 } 1235 ], 1236 "description": "Provides the functionality to export PHP variables for visualization", 1237 "homepage": "http://www.github.com/sebastianbergmann/exporter", 1238 "keywords": [ 1239 "export", 1240 "exporter" 1241 ], 1242 "support": { 1243 "issues": "https://github.com/sebastianbergmann/exporter/issues", 1244 "source": "https://github.com/sebastianbergmann/exporter/tree/3.1.3" 1245 }, 1246 "funding": [ 1247 { 1248 "url": "https://github.com/sebastianbergmann", 1249 "type": "github" 1250 } 1251 ], 1252 "time": "2020-11-30T07:47:53+00:00" 1253 }, 1254 { 1255 "name": "sebastian/global-state", 1256 "version": "2.0.0", 1257 "source": { 1258 "type": "git", 1259 "url": "https://github.com/sebastianbergmann/global-state.git", 1260 "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4" 1261 }, 1262 "dist": { 1263 "type": "zip", 1264 "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4", 1265 "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4", 1266 "shasum": "" 1267 }, 1268 "require": { 1269 "php": "^7.0" 1270 }, 1271 "require-dev": { 1272 "phpunit/phpunit": "^6.0" 1273 }, 1274 "suggest": { 1275 "ext-uopz": "*" 1276 }, 1277 "type": "library", 1278 "extra": { 1279 "branch-alias": { 1280 "dev-master": "2.0-dev" 1281 } 1282 }, 1283 "autoload": { 1284 "classmap": [ 1285 "src/" 1286 ] 1287 }, 1288 "notification-url": "https://packagist.org/downloads/", 1289 "license": [ 1290 "BSD-3-Clause" 1291 ], 1292 "authors": [ 1293 { 1294 "name": "Sebastian Bergmann", 1295 "email": "sebastian@phpunit.de" 1296 } 1297 ], 1298 "description": "Snapshotting of global state", 1299 "homepage": "http://www.github.com/sebastianbergmann/global-state", 1300 "keywords": [ 1301 "global state" 1302 ], 1303 "support": { 1304 "issues": "https://github.com/sebastianbergmann/global-state/issues", 1305 "source": "https://github.com/sebastianbergmann/global-state/tree/2.0.0" 1306 }, 1307 "time": "2017-04-27T15:39:26+00:00" 1308 }, 1309 { 1310 "name": "sebastian/object-enumerator", 1311 "version": "3.0.4", 1312 "source": { 1313 "type": "git", 1314 "url": "https://github.com/sebastianbergmann/object-enumerator.git", 1315 "reference": "e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2" 1316 }, 1317 "dist": { 1318 "type": "zip", 1319 "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2", 1320 "reference": "e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2", 1321 "shasum": "" 1322 }, 1323 "require": { 1324 "php": ">=7.0", 1325 "sebastian/object-reflector": "^1.1.1", 1326 "sebastian/recursion-context": "^3.0" 1327 }, 1328 "require-dev": { 1329 "phpunit/phpunit": "^6.0" 1330 }, 1331 "type": "library", 1332 "extra": { 1333 "branch-alias": { 1334 "dev-master": "3.0.x-dev" 1335 } 1336 }, 1337 "autoload": { 1338 "classmap": [ 1339 "src/" 1340 ] 1341 }, 1342 "notification-url": "https://packagist.org/downloads/", 1343 "license": [ 1344 "BSD-3-Clause" 1345 ], 1346 "authors": [ 1347 { 1348 "name": "Sebastian Bergmann", 1349 "email": "sebastian@phpunit.de" 1350 } 1351 ], 1352 "description": "Traverses array structures and object graphs to enumerate all referenced objects", 1353 "homepage": "https://github.com/sebastianbergmann/object-enumerator/", 1354 "support": { 1355 "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", 1356 "source": "https://github.com/sebastianbergmann/object-enumerator/tree/3.0.4" 1357 }, 1358 "funding": [ 1359 { 1360 "url": "https://github.com/sebastianbergmann", 1361 "type": "github" 1362 } 1363 ], 1364 "time": "2020-11-30T07:40:27+00:00" 1365 }, 1366 { 1367 "name": "sebastian/object-reflector", 1368 "version": "1.1.2", 1369 "source": { 1370 "type": "git", 1371 "url": "https://github.com/sebastianbergmann/object-reflector.git", 1372 "reference": "9b8772b9cbd456ab45d4a598d2dd1a1bced6363d" 1373 }, 1374 "dist": { 1375 "type": "zip", 1376 "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/9b8772b9cbd456ab45d4a598d2dd1a1bced6363d", 1377 "reference": "9b8772b9cbd456ab45d4a598d2dd1a1bced6363d", 1378 "shasum": "" 1379 }, 1380 "require": { 1381 "php": ">=7.0" 1382 }, 1383 "require-dev": { 1384 "phpunit/phpunit": "^6.0" 1385 }, 1386 "type": "library", 1387 "extra": { 1388 "branch-alias": { 1389 "dev-master": "1.1-dev" 1390 } 1391 }, 1392 "autoload": { 1393 "classmap": [ 1394 "src/" 1395 ] 1396 }, 1397 "notification-url": "https://packagist.org/downloads/", 1398 "license": [ 1399 "BSD-3-Clause" 1400 ], 1401 "authors": [ 1402 { 1403 "name": "Sebastian Bergmann", 1404 "email": "sebastian@phpunit.de" 1405 } 1406 ], 1407 "description": "Allows reflection of object attributes, including inherited and non-public ones", 1408 "homepage": "https://github.com/sebastianbergmann/object-reflector/", 1409 "support": { 1410 "issues": "https://github.com/sebastianbergmann/object-reflector/issues", 1411 "source": "https://github.com/sebastianbergmann/object-reflector/tree/1.1.2" 1412 }, 1413 "funding": [ 1414 { 1415 "url": "https://github.com/sebastianbergmann", 1416 "type": "github" 1417 } 1418 ], 1419 "time": "2020-11-30T07:37:18+00:00" 1420 }, 1421 { 1422 "name": "sebastian/recursion-context", 1423 "version": "3.0.1", 1424 "source": { 1425 "type": "git", 1426 "url": "https://github.com/sebastianbergmann/recursion-context.git", 1427 "reference": "367dcba38d6e1977be014dc4b22f47a484dac7fb" 1428 }, 1429 "dist": { 1430 "type": "zip", 1431 "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/367dcba38d6e1977be014dc4b22f47a484dac7fb", 1432 "reference": "367dcba38d6e1977be014dc4b22f47a484dac7fb", 1433 "shasum": "" 1434 }, 1435 "require": { 1436 "php": ">=7.0" 1437 }, 1438 "require-dev": { 1439 "phpunit/phpunit": "^6.0" 1440 }, 1441 "type": "library", 1442 "extra": { 1443 "branch-alias": { 1444 "dev-master": "3.0.x-dev" 1445 } 1446 }, 1447 "autoload": { 1448 "classmap": [ 1449 "src/" 1450 ] 1451 }, 1452 "notification-url": "https://packagist.org/downloads/", 1453 "license": [ 1454 "BSD-3-Clause" 1455 ], 1456 "authors": [ 1457 { 1458 "name": "Sebastian Bergmann", 1459 "email": "sebastian@phpunit.de" 1460 }, 1461 { 1462 "name": "Jeff Welch", 1463 "email": "whatthejeff@gmail.com" 1464 }, 1465 { 1466 "name": "Adam Harvey", 1467 "email": "aharvey@php.net" 1468 } 1469 ], 1470 "description": "Provides functionality to recursively process PHP variables", 1471 "homepage": "http://www.github.com/sebastianbergmann/recursion-context", 1472 "support": { 1473 "issues": "https://github.com/sebastianbergmann/recursion-context/issues", 1474 "source": "https://github.com/sebastianbergmann/recursion-context/tree/3.0.1" 1475 }, 1476 "funding": [ 1477 { 1478 "url": "https://github.com/sebastianbergmann", 1479 "type": "github" 1480 } 1481 ], 1482 "time": "2020-11-30T07:34:24+00:00" 1483 }, 1484 { 1485 "name": "sebastian/resource-operations", 1486 "version": "2.0.2", 1487 "source": { 1488 "type": "git", 1489 "url": "https://github.com/sebastianbergmann/resource-operations.git", 1490 "reference": "31d35ca87926450c44eae7e2611d45a7a65ea8b3" 1491 }, 1492 "dist": { 1493 "type": "zip", 1494 "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/31d35ca87926450c44eae7e2611d45a7a65ea8b3", 1495 "reference": "31d35ca87926450c44eae7e2611d45a7a65ea8b3", 1496 "shasum": "" 1497 }, 1498 "require": { 1499 "php": ">=7.1" 1500 }, 1501 "type": "library", 1502 "extra": { 1503 "branch-alias": { 1504 "dev-master": "2.0-dev" 1505 } 1506 }, 1507 "autoload": { 1508 "classmap": [ 1509 "src/" 1510 ] 1511 }, 1512 "notification-url": "https://packagist.org/downloads/", 1513 "license": [ 1514 "BSD-3-Clause" 1515 ], 1516 "authors": [ 1517 { 1518 "name": "Sebastian Bergmann", 1519 "email": "sebastian@phpunit.de" 1520 } 1521 ], 1522 "description": "Provides a list of PHP built-in functions that operate on resources", 1523 "homepage": "https://www.github.com/sebastianbergmann/resource-operations", 1524 "support": { 1525 "issues": "https://github.com/sebastianbergmann/resource-operations/issues", 1526 "source": "https://github.com/sebastianbergmann/resource-operations/tree/2.0.2" 1527 }, 1528 "funding": [ 1529 { 1530 "url": "https://github.com/sebastianbergmann", 1531 "type": "github" 1532 } 1533 ], 1534 "time": "2020-11-30T07:30:19+00:00" 1535 }, 1536 { 1537 "name": "sebastian/version", 1538 "version": "2.0.1", 1539 "source": { 1540 "type": "git", 1541 "url": "https://github.com/sebastianbergmann/version.git", 1542 "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019" 1543 }, 1544 "dist": { 1545 "type": "zip", 1546 "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019", 1547 "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019", 1548 "shasum": "" 1549 }, 1550 "require": { 1551 "php": ">=5.6" 1552 }, 1553 "type": "library", 1554 "extra": { 1555 "branch-alias": { 1556 "dev-master": "2.0.x-dev" 1557 } 1558 }, 1559 "autoload": { 1560 "classmap": [ 1561 "src/" 1562 ] 1563 }, 1564 "notification-url": "https://packagist.org/downloads/", 1565 "license": [ 1566 "BSD-3-Clause" 1567 ], 1568 "authors": [ 1569 { 1570 "name": "Sebastian Bergmann", 1571 "email": "sebastian@phpunit.de", 1572 "role": "lead" 1573 } 1574 ], 1575 "description": "Library that helps with managing the version number of Git-hosted PHP projects", 1576 "homepage": "https://github.com/sebastianbergmann/version", 1577 "support": { 1578 "issues": "https://github.com/sebastianbergmann/version/issues", 1579 "source": "https://github.com/sebastianbergmann/version/tree/master" 1580 }, 1581 "time": "2016-10-03T07:35:21+00:00" 1582 }, 1583 { 77 1584 "name": "squizlabs/php_codesniffer", 78 1585 "version": "3.5.8", … … 126 1633 }, 127 1634 { 1635 "name": "symfony/polyfill-ctype", 1636 "version": "v1.23.0", 1637 "source": { 1638 "type": "git", 1639 "url": "https://github.com/symfony/polyfill-ctype.git", 1640 "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce" 1641 }, 1642 "dist": { 1643 "type": "zip", 1644 "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/46cd95797e9df938fdd2b03693b5fca5e64b01ce", 1645 "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce", 1646 "shasum": "" 1647 }, 1648 "require": { 1649 "php": ">=7.1" 1650 }, 1651 "suggest": { 1652 "ext-ctype": "For best performance" 1653 }, 1654 "type": "library", 1655 "extra": { 1656 "branch-alias": { 1657 "dev-main": "1.23-dev" 1658 }, 1659 "thanks": { 1660 "name": "symfony/polyfill", 1661 "url": "https://github.com/symfony/polyfill" 1662 } 1663 }, 1664 "autoload": { 1665 "psr-4": { 1666 "Symfony\\Polyfill\\Ctype\\": "" 1667 }, 1668 "files": [ 1669 "bootstrap.php" 1670 ] 1671 }, 1672 "notification-url": "https://packagist.org/downloads/", 1673 "license": [ 1674 "MIT" 1675 ], 1676 "authors": [ 1677 { 1678 "name": "Gert de Pagter", 1679 "email": "BackEndTea@gmail.com" 1680 }, 1681 { 1682 "name": "Symfony Community", 1683 "homepage": "https://symfony.com/contributors" 1684 } 1685 ], 1686 "description": "Symfony polyfill for ctype functions", 1687 "homepage": "https://symfony.com", 1688 "keywords": [ 1689 "compatibility", 1690 "ctype", 1691 "polyfill", 1692 "portable" 1693 ], 1694 "support": { 1695 "source": "https://github.com/symfony/polyfill-ctype/tree/v1.23.0" 1696 }, 1697 "funding": [ 1698 { 1699 "url": "https://symfony.com/sponsor", 1700 "type": "custom" 1701 }, 1702 { 1703 "url": "https://github.com/fabpot", 1704 "type": "github" 1705 }, 1706 { 1707 "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 1708 "type": "tidelift" 1709 } 1710 ], 1711 "time": "2021-02-19T12:13:01+00:00" 1712 }, 1713 { 1714 "name": "theseer/tokenizer", 1715 "version": "1.1.3", 1716 "source": { 1717 "type": "git", 1718 "url": "https://github.com/theseer/tokenizer.git", 1719 "reference": "11336f6f84e16a720dae9d8e6ed5019efa85a0f9" 1720 }, 1721 "dist": { 1722 "type": "zip", 1723 "url": "https://api.github.com/repos/theseer/tokenizer/zipball/11336f6f84e16a720dae9d8e6ed5019efa85a0f9", 1724 "reference": "11336f6f84e16a720dae9d8e6ed5019efa85a0f9", 1725 "shasum": "" 1726 }, 1727 "require": { 1728 "ext-dom": "*", 1729 "ext-tokenizer": "*", 1730 "ext-xmlwriter": "*", 1731 "php": "^7.0" 1732 }, 1733 "type": "library", 1734 "autoload": { 1735 "classmap": [ 1736 "src/" 1737 ] 1738 }, 1739 "notification-url": "https://packagist.org/downloads/", 1740 "license": [ 1741 "BSD-3-Clause" 1742 ], 1743 "authors": [ 1744 { 1745 "name": "Arne Blankerts", 1746 "email": "arne@blankerts.de", 1747 "role": "Developer" 1748 } 1749 ], 1750 "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", 1751 "support": { 1752 "issues": "https://github.com/theseer/tokenizer/issues", 1753 "source": "https://github.com/theseer/tokenizer/tree/master" 1754 }, 1755 "time": "2019-06-13T22:48:21+00:00" 1756 }, 1757 { 1758 "name": "webmozart/assert", 1759 "version": "1.9.1", 1760 "source": { 1761 "type": "git", 1762 "url": "https://github.com/webmozarts/assert.git", 1763 "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389" 1764 }, 1765 "dist": { 1766 "type": "zip", 1767 "url": "https://api.github.com/repos/webmozarts/assert/zipball/bafc69caeb4d49c39fd0779086c03a3738cbb389", 1768 "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389", 1769 "shasum": "" 1770 }, 1771 "require": { 1772 "php": "^5.3.3 || ^7.0 || ^8.0", 1773 "symfony/polyfill-ctype": "^1.8" 1774 }, 1775 "conflict": { 1776 "phpstan/phpstan": "<0.12.20", 1777 "vimeo/psalm": "<3.9.1" 1778 }, 1779 "require-dev": { 1780 "phpunit/phpunit": "^4.8.36 || ^7.5.13" 1781 }, 1782 "type": "library", 1783 "autoload": { 1784 "psr-4": { 1785 "Webmozart\\Assert\\": "src/" 1786 } 1787 }, 1788 "notification-url": "https://packagist.org/downloads/", 1789 "license": [ 1790 "MIT" 1791 ], 1792 "authors": [ 1793 { 1794 "name": "Bernhard Schussek", 1795 "email": "bschussek@gmail.com" 1796 } 1797 ], 1798 "description": "Assertions to validate method input/output with nice error messages.", 1799 "keywords": [ 1800 "assert", 1801 "check", 1802 "validate" 1803 ], 1804 "support": { 1805 "issues": "https://github.com/webmozarts/assert/issues", 1806 "source": "https://github.com/webmozarts/assert/tree/1.9.1" 1807 }, 1808 "time": "2020-07-08T17:02:28+00:00" 1809 }, 1810 { 128 1811 "name": "wp-coding-standards/wpcs", 129 1812 "version": "2.0.0", … … 169 1852 ], 170 1853 "time": "2019-01-16T10:13:16+00:00" 1854 }, 1855 { 1856 "name": "yoast/phpunit-polyfills", 1857 "version": "1.0.1", 1858 "source": { 1859 "type": "git", 1860 "url": "https://github.com/Yoast/PHPUnit-Polyfills.git", 1861 "reference": "f014fb21c2b0038fd329515d59025af42fb98715" 1862 }, 1863 "dist": { 1864 "type": "zip", 1865 "url": "https://api.github.com/repos/Yoast/PHPUnit-Polyfills/zipball/f014fb21c2b0038fd329515d59025af42fb98715", 1866 "reference": "f014fb21c2b0038fd329515d59025af42fb98715", 1867 "shasum": "" 1868 }, 1869 "require": { 1870 "php": ">=5.4", 1871 "phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.0" 1872 }, 1873 "require-dev": { 1874 "php-parallel-lint/php-console-highlighter": "^0.5", 1875 "php-parallel-lint/php-parallel-lint": "^1.3.0", 1876 "yoast/yoastcs": "^2.1.0" 1877 }, 1878 "type": "library", 1879 "extra": { 1880 "branch-alias": { 1881 "dev-main": "1.x-dev", 1882 "dev-develop": "1.x-dev" 1883 } 1884 }, 1885 "autoload": { 1886 "files": [ 1887 "phpunitpolyfills-autoload.php" 1888 ] 1889 }, 1890 "notification-url": "https://packagist.org/downloads/", 1891 "license": [ 1892 "BSD-3-Clause" 1893 ], 1894 "authors": [ 1895 { 1896 "name": "Team Yoast", 1897 "email": "support@yoast.com", 1898 "homepage": "https://yoast.com" 1899 }, 1900 { 1901 "name": "Contributors", 1902 "homepage": "https://github.com/Yoast/PHPUnit-Polyfills/graphs/contributors" 1903 } 1904 ], 1905 "description": "Set of polyfills for changed PHPUnit functionality to allow for creating PHPUnit cross-version compatible tests", 1906 "homepage": "https://github.com/Yoast/PHPUnit-Polyfills", 1907 "keywords": [ 1908 "phpunit", 1909 "polyfill", 1910 "testing" 1911 ], 1912 "support": { 1913 "issues": "https://github.com/Yoast/PHPUnit-Polyfills/issues", 1914 "source": "https://github.com/Yoast/PHPUnit-Polyfills" 1915 }, 1916 "time": "2021-08-09T16:28:08+00:00" 171 1917 } 172 1918 ], … … 178 1924 "platform": [], 179 1925 "platform-dev": [], 180 "plugin-api-version": " 1.1.0"1926 "plugin-api-version": "2.1.0" 181 1927 } -
branches/5.2/tests/phpunit/includes/bootstrap.php
r45020 r51846 51 51 exit( 1 ); 52 52 } 53 54 /* 55 * Load the PHPUnit Polyfills autoloader. 56 * 57 * The PHPUnit Polyfills are a requirement for the WP test suite. 58 * 59 * For running the Core tests, the Make WordPress Core handbook contains step-by-step instructions 60 * on how to get up and running for a variety of supported workflows: 61 * {@link https://make.wordpress.org/core/handbook/testing/automated-testing/phpunit/#test-running-workflow-options} 62 * 63 * Plugin/theme integration tests can handle this in any of the following ways: 64 * - When using a full WP install: run `composer install` for the WP install prior to running the tests. 65 * - When using a partial WP test suite install: 66 * - Add a `yoast/phpunit-polyfills` (dev) requirement to the plugin/theme's own `composer.json` file. 67 * - And then: 68 * - Either load the PHPUnit Polyfills autoload file prior to running the WP core bootstrap file. 69 * - Or declare a `WP_TESTS_PHPUNIT_POLYFILLS_PATH` constant containing the absolute path to the 70 * root directory of the PHPUnit Polyfills installation. 71 * If the constant is used, it is strongly recommended to declare this constant in the plugin/theme's 72 * own test bootstrap file. 73 * The constant MUST be declared prior to calling this file. 74 */ 75 if ( ! class_exists( 'Yoast\PHPUnitPolyfills\Autoload' ) ) { 76 // Default location of the autoloader for WP core test runs. 77 $phpunit_polyfills_autoloader = dirname( dirname( dirname( __DIR__ ) ) ) . '/vendor/yoast/phpunit-polyfills/phpunitpolyfills-autoload.php'; 78 $phpunit_polyfills_error = false; 79 80 // Allow for a custom installation location to be provided for plugin/theme integration tests. 81 if ( defined( 'WP_TESTS_PHPUNIT_POLYFILLS_PATH' ) ) { 82 $phpunit_polyfills_path = WP_TESTS_PHPUNIT_POLYFILLS_PATH; 83 84 if ( is_string( WP_TESTS_PHPUNIT_POLYFILLS_PATH ) 85 && '' !== WP_TESTS_PHPUNIT_POLYFILLS_PATH 86 ) { 87 // Be tolerant to the path being provided including the filename. 88 if ( substr( $phpunit_polyfills_path, -29 ) !== 'phpunitpolyfills-autoload.php' ) { 89 $phpunit_polyfills_path = rtrim( $phpunit_polyfills_path, '/\\' ); 90 $phpunit_polyfills_path = $phpunit_polyfills_path . '/phpunitpolyfills-autoload.php'; 91 } 92 93 $phpunit_polyfills_autoloader = $phpunit_polyfills_path; 94 } else { 95 $phpunit_polyfills_error = true; 96 } 97 } 98 99 if ( $phpunit_polyfills_error || ! file_exists( $phpunit_polyfills_autoloader ) ) { 100 echo 'Error: The PHPUnit Polyfills library is a requirement for running the WP test suite.' . PHP_EOL; 101 if ( defined( 'WP_TESTS_PHPUNIT_POLYFILLS_PATH' ) ) { 102 printf( 103 'The PHPUnit Polyfills autoload file was not found in "%s"' . PHP_EOL, 104 WP_TESTS_PHPUNIT_POLYFILLS_PATH 105 ); 106 echo 'Please verify that the file path provided in the WP_TESTS_PHPUNIT_POLYFILLS_PATH constant is correct.' . PHP_EOL; 107 echo 'The WP_TESTS_PHPUNIT_POLYFILLS_PATH constant should contain an absolute path to the root directory' 108 . ' of the PHPUnit Polyfills library.' . PHP_EOL; 109 } elseif ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS ) { 110 echo 'You need to run `composer install` before running the tests.' . PHP_EOL; 111 echo 'Once the dependencies are installed, you can run the tests using the Composer-installed version' 112 . ' of PHPUnit or using a PHPUnit phar file, but the dependencies do need to be installed' 113 . ' whichever way the tests are run.' . PHP_EOL; 114 } else { 115 echo 'If you are trying to run plugin/theme integration tests, make sure the PHPUnit Polyfills library' 116 . ' (https://github.com/Yoast/PHPUnit-Polyfills) is available and either load the autoload file' 117 . ' of this library in your own test bootstrap before calling the WP Core test bootstrap file;' 118 . ' or set the absolute path to the PHPUnit Polyfills library in a "WP_TESTS_PHPUNIT_POLYFILLS_PATH"' 119 . ' constant to allow the WP Core bootstrap to load the Polyfills.' . PHP_EOL . PHP_EOL; 120 echo 'If you are trying to run the WP Core tests, make sure to set the "WP_RUN_CORE_TESTS" constant' 121 . ' to 1 and run `composer install` before running the tests.' . PHP_EOL; 122 echo 'Once the dependencies are installed, you can run the tests using the Composer-installed' 123 . ' version of PHPUnit or using a PHPUnit phar file, but the dependencies do need to be' 124 . ' installed whichever way the tests are run.' . PHP_EOL; 125 } 126 exit( 1 ); 127 } 128 129 require_once $phpunit_polyfills_autoloader; 130 } 131 unset( $phpunit_polyfills_autoloader, $phpunit_polyfills_error, $phpunit_polyfills_path ); 132 133 /* 134 * Minimum version of the PHPUnit Polyfills package as declared in `composer.json`. 135 * Only needs updating when new polyfill features start being used in the test suite. 136 */ 137 $phpunit_polyfills_minimum_version = '1.0.1'; 138 if ( class_exists( '\Yoast\PHPUnitPolyfills\Autoload' ) 139 && ( defined( '\Yoast\PHPUnitPolyfills\Autoload::VERSION' ) === false 140 || version_compare( Yoast\PHPUnitPolyfills\Autoload::VERSION, $phpunit_polyfills_minimum_version, '<' ) ) 141 ) { 142 printf( 143 'Error: Version mismatch detected for the PHPUnit Polyfills.' 144 . ' Please ensure that PHPUnit Polyfills %s or higher is loaded. Found version: %s' . PHP_EOL, 145 $phpunit_polyfills_minimum_version, 146 defined( '\Yoast\PHPUnitPolyfills\Autoload::VERSION' ) ? Yoast\PHPUnitPolyfills\Autoload::VERSION : '1.0.0 or lower' 147 ); 148 if ( defined( 'WP_TESTS_PHPUNIT_POLYFILLS_PATH' ) ) { 149 printf( 150 'Please ensure that the PHPUnit Polyfill installation in "%s" is updated to version %s or higher.' . PHP_EOL, 151 WP_TESTS_PHPUNIT_POLYFILLS_PATH, 152 $phpunit_polyfills_minimum_version 153 ); 154 } elseif ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS ) { 155 echo 'Please run `composer install` to install the latest version.' . PHP_EOL; 156 } 157 exit( 1 ); 158 } 159 unset( $phpunit_polyfills_minimum_version ); 53 160 54 161 tests_reset__SERVER(); -
branches/5.2/tests/phpunit/includes/phpunit7/testcase.php
r44719 r51846 1 1 <?php 2 2 3 require_once dirname( dirname( __FILE__ ) ) . '/abstract-testcase.php'; 3 use Yoast\PHPUnitPolyfills\Helpers\AssertAttributeHelper; 4 use Yoast\PHPUnitPolyfills\Polyfills\AssertClosedResource; 5 use Yoast\PHPUnitPolyfills\Polyfills\AssertEqualsSpecializations; 6 use Yoast\PHPUnitPolyfills\Polyfills\AssertFileDirectory; 7 use Yoast\PHPUnitPolyfills\Polyfills\AssertFileEqualsSpecializations; 8 use Yoast\PHPUnitPolyfills\Polyfills\AssertionRenames; 9 use Yoast\PHPUnitPolyfills\Polyfills\AssertIsType; 10 use Yoast\PHPUnitPolyfills\Polyfills\AssertNumericType; 11 use Yoast\PHPUnitPolyfills\Polyfills\AssertObjectEquals; 12 use Yoast\PHPUnitPolyfills\Polyfills\AssertStringContains; 13 use Yoast\PHPUnitPolyfills\Polyfills\EqualToSpecializations; 14 use Yoast\PHPUnitPolyfills\Polyfills\ExpectException; 15 use Yoast\PHPUnitPolyfills\Polyfills\ExpectExceptionMessageMatches; 16 use Yoast\PHPUnitPolyfills\Polyfills\ExpectExceptionObject; 17 use Yoast\PHPUnitPolyfills\Polyfills\ExpectPHPException; 18 19 require_once dirname( __DIR__ ) . '/abstract-testcase.php'; 4 20 5 21 /** … … 14 30 class WP_UnitTestCase extends WP_UnitTestCase_Base { 15 31 32 use AssertAttributeHelper; 33 use AssertClosedResource; 34 use AssertEqualsSpecializations; 35 use AssertFileDirectory; 36 use AssertFileEqualsSpecializations; 37 use AssertionRenames; 38 use AssertIsType; 39 use AssertNumericType; 40 use AssertObjectEquals; 41 use AssertStringContains; 42 use EqualToSpecializations; 43 use ExpectException; 44 use ExpectExceptionMessageMatches; 45 use ExpectExceptionObject; 46 use ExpectPHPException; 47 16 48 /** 17 * Asserts that a condition is not false. 18 * 19 * This method has been backported from a more recent PHPUnit version, as tests running on PHP 5.2 use 20 * PHPUnit 3.6.x. 21 * 22 * @since 4.7.4 23 * 24 * @param bool $condition Condition to check. 25 * @param string $message Optional. Message to display when the assertion fails. 26 * 27 * @throws PHPUnit_Framework_AssertionFailedError 49 * Wrapper method for the `setUpBeforeClass()` method for forward-compatibility with WP 5.9. 28 50 */ 29 public static function assertNotFalse( $condition, string $message = '' ): void { 30 self::assertThat( $condition, self::logicalNot( self::isFalse() ), $message ); 51 public static function set_up_before_class() { 52 static::setUpBeforeClass(); 53 } 54 55 /** 56 * Wrapper method for the `tearDownAfterClass()` method for forward-compatibility with WP 5.9. 57 */ 58 public static function tear_down_after_class() { 59 static::tearDownAfterClass(); 60 } 61 62 /** 63 * Wrapper method for the `setUp()` method for forward-compatibility with WP 5.9. 64 */ 65 public function set_up() { 66 static::setUp(); 67 } 68 69 /** 70 * Wrapper method for the `tearDown()` method for forward-compatibility with WP 5.9. 71 */ 72 public function tear_down() { 73 static::tearDown(); 31 74 } 32 75 } -
branches/5.2/tests/phpunit/includes/testcase.php
r44701 r51846 1 1 <?php 2 2 3 require_once dirname( __FILE__ ) . '/abstract-testcase.php'; 3 use Yoast\PHPUnitPolyfills\Helpers\AssertAttributeHelper; 4 use Yoast\PHPUnitPolyfills\Polyfills\AssertClosedResource; 5 use Yoast\PHPUnitPolyfills\Polyfills\AssertEqualsSpecializations; 6 use Yoast\PHPUnitPolyfills\Polyfills\AssertFileDirectory; 7 use Yoast\PHPUnitPolyfills\Polyfills\AssertFileEqualsSpecializations; 8 use Yoast\PHPUnitPolyfills\Polyfills\AssertionRenames; 9 use Yoast\PHPUnitPolyfills\Polyfills\AssertIsType; 10 use Yoast\PHPUnitPolyfills\Polyfills\AssertNumericType; 11 use Yoast\PHPUnitPolyfills\Polyfills\AssertObjectEquals; 12 use Yoast\PHPUnitPolyfills\Polyfills\AssertStringContains; 13 use Yoast\PHPUnitPolyfills\Polyfills\EqualToSpecializations; 14 use Yoast\PHPUnitPolyfills\Polyfills\ExpectException; 15 use Yoast\PHPUnitPolyfills\Polyfills\ExpectExceptionMessageMatches; 16 use Yoast\PHPUnitPolyfills\Polyfills\ExpectExceptionObject; 17 use Yoast\PHPUnitPolyfills\Polyfills\ExpectPHPException; 18 19 require_once __DIR__ . '/abstract-testcase.php'; 4 20 5 21 /** … … 14 30 class WP_UnitTestCase extends WP_UnitTestCase_Base { 15 31 32 use AssertAttributeHelper; 33 use AssertClosedResource; 34 use AssertEqualsSpecializations; 35 use AssertFileDirectory; 36 use AssertFileEqualsSpecializations; 37 use AssertionRenames; 38 use AssertIsType; 39 use AssertNumericType; 40 use AssertObjectEquals; 41 use AssertStringContains; 42 use EqualToSpecializations; 43 use ExpectException; 44 use ExpectExceptionMessageMatches; 45 use ExpectExceptionObject; 46 use ExpectPHPException; 47 16 48 /** 17 * Asserts that a condition is not false. 18 * 19 * This method has been backported from a more recent PHPUnit version, as tests running on PHP 5.2 use 20 * PHPUnit 3.6.x. 21 * 22 * @since 4.7.4 23 * 24 * @param bool $condition Condition to check. 25 * @param string $message Optional. Message to display when the assertion fails. 26 * 27 * @throws PHPUnit_Framework_AssertionFailedError 49 * Wrapper method for the `setUpBeforeClass()` method for forward-compatibility with WP 5.9. 28 50 */ 29 public static function assertNotFalse( $condition, $message = '' ) { 30 self::assertThat( $condition, self::logicalNot( self::isFalse() ), $message ); 51 public static function set_up_before_class() { 52 static::setUpBeforeClass(); 53 } 54 55 /** 56 * Wrapper method for the `tearDownAfterClass()` method for forward-compatibility with WP 5.9. 57 */ 58 public static function tear_down_after_class() { 59 static::tearDownAfterClass(); 60 } 61 62 /** 63 * Wrapper method for the `setUp()` method for forward-compatibility with WP 5.9. 64 */ 65 public function set_up() { 66 static::setUp(); 67 } 68 69 /** 70 * Wrapper method for the `tearDown()` method for forward-compatibility with WP 5.9. 71 */ 72 public function tear_down() { 73 static::tearDown(); 31 74 } 32 75 }
Note: See TracChangeset
for help on using the changeset viewer.