update lock clucknut
All checks were successful
All checks were successful
This commit is contained in:
21
vendor/phpunit/phpunit/ChangeLog-10.5.md
vendored
21
vendor/phpunit/phpunit/ChangeLog-10.5.md
vendored
@@ -2,6 +2,24 @@ # Changes in PHPUnit 10.5
|
||||
|
||||
All notable changes of the PHPUnit 10.5 release series are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles.
|
||||
|
||||
## [10.5.63] - 2026-01-27
|
||||
|
||||
### Fixed
|
||||
|
||||
* Regression introduced in PHPUnit 9.6.33
|
||||
|
||||
## [10.5.62] - 2026-01-27
|
||||
|
||||
### Changed
|
||||
|
||||
* To prevent Poisoned Pipeline Execution (PPE) attacks using prepared `.coverage` files in pull requests, a PHPT test will no longer be run if the temporary file for writing code coverage information already exists before the test runs
|
||||
|
||||
## [10.5.61] - 2026-01-24
|
||||
|
||||
### Changed
|
||||
|
||||
* `PHPUnit\Framework\MockObject` exceptions are now subtypes of `PHPUnit\Exception`
|
||||
|
||||
## [10.5.60] - 2025-12-06
|
||||
|
||||
* No changes; `phpunit.phar` rebuilt with PHP 8.4 to work around PHP-Scoper issue [#1139](https://github.com/humbug/php-scoper/issues/1139)
|
||||
@@ -509,6 +527,9 @@ ### Fixed
|
||||
|
||||
* [#5563](https://github.com/sebastianbergmann/phpunit/issues/5563): `createMockForIntersectionOfInterfaces()` does not automatically register mock object for expectation verification
|
||||
|
||||
[10.5.63]: https://github.com/sebastianbergmann/phpunit/compare/10.5.62...10.5.63
|
||||
[10.5.62]: https://github.com/sebastianbergmann/phpunit/compare/10.5.61...10.5.62
|
||||
[10.5.61]: https://github.com/sebastianbergmann/phpunit/compare/10.5.60...10.5.61
|
||||
[10.5.60]: https://github.com/sebastianbergmann/phpunit/compare/10.5.59...10.5.60
|
||||
[10.5.59]: https://github.com/sebastianbergmann/phpunit/compare/10.5.58...10.5.59
|
||||
[10.5.58]: https://github.com/sebastianbergmann/phpunit/compare/10.5.57...10.5.58
|
||||
|
||||
2
vendor/phpunit/phpunit/LICENSE
vendored
2
vendor/phpunit/phpunit/LICENSE
vendored
@@ -1,6 +1,6 @@
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2001-2025, Sebastian Bergmann
|
||||
Copyright (c) 2001-2026, Sebastian Bergmann
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
||||
2
vendor/phpunit/phpunit/composer.json
vendored
2
vendor/phpunit/phpunit/composer.json
vendored
@@ -39,7 +39,7 @@
|
||||
"phpunit/php-timer": "^6.0.0",
|
||||
"sebastian/cli-parser": "^2.0.1",
|
||||
"sebastian/code-unit": "^2.0.0",
|
||||
"sebastian/comparator": "^5.0.4",
|
||||
"sebastian/comparator": "^5.0.5",
|
||||
"sebastian/diff": "^5.1.1",
|
||||
"sebastian/environment": "^6.1.0",
|
||||
"sebastian/exporter": "^5.1.4",
|
||||
|
||||
26
vendor/phpunit/phpunit/composer.lock
generated
vendored
26
vendor/phpunit/phpunit/composer.lock
generated
vendored
@@ -4,7 +4,7 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "57d0db32e86a80c8096681bddf4bdd30",
|
||||
"content-hash": "8dfe5ace1a29844a4ff8db731eb68f21",
|
||||
"packages": [
|
||||
{
|
||||
"name": "myclabs/deep-copy",
|
||||
@@ -68,16 +68,16 @@
|
||||
},
|
||||
{
|
||||
"name": "nikic/php-parser",
|
||||
"version": "v5.6.2",
|
||||
"version": "v5.7.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/nikic/PHP-Parser.git",
|
||||
"reference": "3a454ca033b9e06b63282ce19562e892747449bb"
|
||||
"reference": "dca41cd15c2ac9d055ad70dbfd011130757d1f82"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/3a454ca033b9e06b63282ce19562e892747449bb",
|
||||
"reference": "3a454ca033b9e06b63282ce19562e892747449bb",
|
||||
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/dca41cd15c2ac9d055ad70dbfd011130757d1f82",
|
||||
"reference": "dca41cd15c2ac9d055ad70dbfd011130757d1f82",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -120,9 +120,9 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/nikic/PHP-Parser/issues",
|
||||
"source": "https://github.com/nikic/PHP-Parser/tree/v5.6.2"
|
||||
"source": "https://github.com/nikic/PHP-Parser/tree/v5.7.0"
|
||||
},
|
||||
"time": "2025-10-21T19:32:17+00:00"
|
||||
"time": "2025-12-06T11:56:16+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phar-io/manifest",
|
||||
@@ -733,16 +733,16 @@
|
||||
},
|
||||
{
|
||||
"name": "sebastian/comparator",
|
||||
"version": "5.0.4",
|
||||
"version": "5.0.5",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/sebastianbergmann/comparator.git",
|
||||
"reference": "e8e53097718d2b53cfb2aa859b06a41abf58c62e"
|
||||
"reference": "55dfef806eb7dfeb6e7a6935601fef866f8ca48d"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/e8e53097718d2b53cfb2aa859b06a41abf58c62e",
|
||||
"reference": "e8e53097718d2b53cfb2aa859b06a41abf58c62e",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/55dfef806eb7dfeb6e7a6935601fef866f8ca48d",
|
||||
"reference": "55dfef806eb7dfeb6e7a6935601fef866f8ca48d",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -798,7 +798,7 @@
|
||||
"support": {
|
||||
"issues": "https://github.com/sebastianbergmann/comparator/issues",
|
||||
"security": "https://github.com/sebastianbergmann/comparator/security/policy",
|
||||
"source": "https://github.com/sebastianbergmann/comparator/tree/5.0.4"
|
||||
"source": "https://github.com/sebastianbergmann/comparator/tree/5.0.5"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -818,7 +818,7 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2025-09-07T05:25:07+00:00"
|
||||
"time": "2026-01-24T09:25:16+00:00"
|
||||
},
|
||||
{
|
||||
"name": "sebastian/complexity",
|
||||
|
||||
0
vendor/phpunit/phpunit/phpunit
vendored
Normal file → Executable file
0
vendor/phpunit/phpunit/phpunit
vendored
Normal file → Executable file
@@ -19,7 +19,7 @@
|
||||
/**
|
||||
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
|
||||
*
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
interface Emitter
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
/**
|
||||
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
|
||||
*
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
interface IncompleteTest extends Throwable
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
/**
|
||||
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
|
||||
*
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
interface SkippedTest extends Throwable
|
||||
{
|
||||
|
||||
@@ -9,13 +9,11 @@
|
||||
*/
|
||||
namespace PHPUnit\Framework\MockObject;
|
||||
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
|
||||
*
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
interface Exception extends Throwable
|
||||
interface Exception extends \PHPUnit\Exception
|
||||
{
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
/**
|
||||
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
|
||||
*
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
interface MockType
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
/**
|
||||
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
|
||||
*
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
interface Identity
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
/**
|
||||
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
|
||||
*
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
interface MethodNameMatch extends ParametersMatch
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
/**
|
||||
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
|
||||
*
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
interface ParametersMatch extends Stub
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
/**
|
||||
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
|
||||
*
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
interface Stub extends Identity
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
/**
|
||||
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
|
||||
*
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
interface Stub
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
/**
|
||||
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
|
||||
*
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
interface Reorderable
|
||||
{
|
||||
|
||||
@@ -1869,21 +1869,23 @@ private function compareGlobalStateSnapshots(Snapshot $before, Snapshot $after):
|
||||
*/
|
||||
private function compareGlobalStateSnapshotPart(array $before, array $after, string $header): void
|
||||
{
|
||||
if ($before != $after) {
|
||||
$differ = new Differ(new UnifiedDiffOutputBuilder($header));
|
||||
$exporter = new Exporter;
|
||||
|
||||
Event\Facade::emitter()->testConsideredRisky(
|
||||
$this->valueObjectForEvents(),
|
||||
'This test modified global state but was not expected to do so' . PHP_EOL .
|
||||
trim(
|
||||
$differ->diff(
|
||||
$exporter->export($before),
|
||||
$exporter->export($after),
|
||||
),
|
||||
),
|
||||
);
|
||||
if ($before == $after) {
|
||||
return;
|
||||
}
|
||||
|
||||
$differ = new Differ(new UnifiedDiffOutputBuilder($header));
|
||||
$exporter = new Exporter;
|
||||
|
||||
Event\Facade::emitter()->testConsideredRisky(
|
||||
$this->valueObjectForEvents(),
|
||||
'This test modified global state but was not expected to do so' . PHP_EOL .
|
||||
trim(
|
||||
$differ->diff(
|
||||
$exporter->export($before),
|
||||
$exporter->export($after),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
private function shouldInvocationMockerBeReset(MockObject $mock): bool
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
/**
|
||||
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
|
||||
*
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
interface Parser
|
||||
{
|
||||
|
||||
@@ -25,7 +25,7 @@ final class RequiresOperatingSystem extends Metadata
|
||||
* @psalm-param 0|1 $level
|
||||
* @psalm-param non-empty-string $operatingSystem
|
||||
*/
|
||||
public function __construct(int $level, string $operatingSystem)
|
||||
protected function __construct(int $level, string $operatingSystem)
|
||||
{
|
||||
parent::__construct($level);
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ final class UsesFunction extends Metadata
|
||||
* @psalm-param 0|1 $level
|
||||
* @psalm-param non-empty-string $functionName
|
||||
*/
|
||||
public function __construct(int $level, string $functionName)
|
||||
protected function __construct(int $level, string $functionName)
|
||||
{
|
||||
parent::__construct($level);
|
||||
|
||||
|
||||
21
vendor/phpunit/phpunit/src/Runner/Exception/CodeCoverageFileExistsException.php
vendored
Normal file
21
vendor/phpunit/phpunit/src/Runner/Exception/CodeCoverageFileExistsException.php
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of PHPUnit.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
namespace PHPUnit\Runner;
|
||||
|
||||
use RuntimeException;
|
||||
|
||||
/**
|
||||
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
|
||||
*
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
final class CodeCoverageFileExistsException extends RuntimeException implements Exception
|
||||
{
|
||||
}
|
||||
@@ -14,7 +14,7 @@
|
||||
/**
|
||||
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
|
||||
*
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
final class ErrorException extends Error implements Exception
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
/**
|
||||
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
|
||||
*
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
interface Exception extends \PHPUnit\Exception
|
||||
{
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
use function explode;
|
||||
use function extension_loaded;
|
||||
use function file;
|
||||
use function file_exists;
|
||||
use function file_get_contents;
|
||||
use function file_put_contents;
|
||||
use function is_array;
|
||||
@@ -31,6 +32,7 @@
|
||||
use function preg_split;
|
||||
use function realpath;
|
||||
use function rtrim;
|
||||
use function sprintf;
|
||||
use function str_contains;
|
||||
use function str_replace;
|
||||
use function str_starts_with;
|
||||
@@ -89,7 +91,10 @@ final class PhptTestCase implements Reorderable, SelfDescribing, Test
|
||||
public function __construct(string $filename, ?AbstractPhpProcess $phpUtil = null)
|
||||
{
|
||||
$this->filename = $filename;
|
||||
$this->phpUtil = $phpUtil ?: AbstractPhpProcess::factory();
|
||||
|
||||
$this->ensureCoverageFileDoesNotExist();
|
||||
|
||||
$this->phpUtil = $phpUtil ?: AbstractPhpProcess::factory();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -654,7 +659,14 @@ private function cleanupForCoverage(): RawCodeCoverageData
|
||||
}
|
||||
|
||||
if ($buffer !== false) {
|
||||
$coverage = @unserialize($buffer);
|
||||
$coverage = @unserialize(
|
||||
$buffer,
|
||||
[
|
||||
'allowed_classes' => [
|
||||
RawCodeCoverageData::class,
|
||||
],
|
||||
],
|
||||
);
|
||||
|
||||
if ($coverage === false) {
|
||||
$coverage = RawCodeCoverageData::fromXdebugWithoutPathCoverage([]);
|
||||
@@ -840,4 +852,22 @@ private function settings(bool $collectCoverage): array
|
||||
|
||||
return $settings;
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws CodeCoverageFileExistsException
|
||||
*/
|
||||
private function ensureCoverageFileDoesNotExist(): void
|
||||
{
|
||||
$files = $this->getCoverageFiles();
|
||||
|
||||
if (file_exists($files['coverage'])) {
|
||||
throw new CodeCoverageFileExistsException(
|
||||
sprintf(
|
||||
'File %s exists, PHPT test %s will not be executed',
|
||||
$files['coverage'],
|
||||
$this->filename,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
/**
|
||||
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
|
||||
*
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
interface ResultCache
|
||||
{
|
||||
|
||||
@@ -34,7 +34,7 @@ public static function id(): string
|
||||
}
|
||||
|
||||
if (self::$version === '') {
|
||||
self::$version = (new VersionId('10.5.60', dirname(__DIR__, 2)))->asString();
|
||||
self::$version = (new VersionId('10.5.63', dirname(__DIR__, 2)))->asString();
|
||||
}
|
||||
|
||||
return self::$version;
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
/**
|
||||
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
|
||||
*
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
interface Command
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
/**
|
||||
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
|
||||
*
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
interface Migration
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
/**
|
||||
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
|
||||
*
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
interface Downloader
|
||||
{
|
||||
|
||||
@@ -114,7 +114,9 @@ public function load(string $actual, ?string $filename = null): DOMDocument
|
||||
}
|
||||
|
||||
if ($message === '') {
|
||||
// @codeCoverageIgnoreStart
|
||||
$message = 'Could not load XML for unknown reason';
|
||||
// @codeCoverageIgnoreEnd
|
||||
}
|
||||
|
||||
throw new XmlException($message);
|
||||
|
||||
Reference in New Issue
Block a user