Skip to content

Bump phpunit/phpunit from 7.5.20 to 8.5.52#68

Merged
rick-lam merged 7 commits into
masterfrom
dependabot/composer/phpunit/phpunit-8.5.52
Apr 30, 2026
Merged

Bump phpunit/phpunit from 7.5.20 to 8.5.52#68
rick-lam merged 7 commits into
masterfrom
dependabot/composer/phpunit/phpunit-8.5.52

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Jan 27, 2026

Bumps phpunit/phpunit from 7.5.20 to 8.5.52.

Release notes

Sourced from phpunit/phpunit's releases.

PHPUnit 8.5.52

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

Learn how to install or update PHPUnit 8.5 in the documentation.

Keep up to date with PHPUnit:

PHPUnit 8.5.51

Changed

  • PHPUnit\Framework\MockObject exceptions subtypes of PHPUnit\Exception

Learn how to install or update PHPUnit 8.5 in the documentation.

Keep up to date with PHPUnit:

PHPUnit 8.5.50

  • No changes; phpunit.phar rebuilt with PHP 8.4 to work around PHP-Scoper issue #1139

Learn how to install or update PHPUnit 8.5 in the documentation.

Keep up to date with PHPUnit:

PHPUnit 8.5.49

  • No changes; phpunit.phar rebuilt with updated dependencies

Learn how to install or update PHPUnit 8.5 in the documentation.

Keep up to date with PHPUnit:

... (truncated)

Changelog

Sourced from phpunit/phpunit's changelog.

[8.5.52] - 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

[8.5.51] - 2026-01-24

Changed

  • PHPUnit\Framework\MockObject exceptions are now subtypes of PHPUnit\Exception

[8.5.50] - 2025-12-06

  • No changes; phpunit.phar rebuilt with PHP 8.4 to work around PHP-Scoper issue #1139

[8.5.49] - 2025-12-01

  • No changes; phpunit.phar rebuilt with updated dependencies

[8.5.48] - 2025-09-24

  • No changes; phpunit.phar rebuilt with updated dependencies

[8.5.47] - 2025-09-23

  • No changes; phpunit.phar rebuilt with updated dependencies

[8.5.46] - 2025-09-14

Changed

  • #6366: Exclude __sleep() and __wakeup() from test double code generation on PHP >= 8.5

[8.5.45] - 2025-09-11

Changed

  • Implement __serialize() in addition to __sleep() (which will be deprecated in PHP 8.5)

[8.5.44] - 2025-08-20

Changed

  • Do not configure report_memleaks setting (which will be deprecated in PHP 8.5) for PHPT processes

[8.5.43] - 2025-08-10

Changed

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 7.5.20 to 8.5.52.
- [Release notes](https://github.com/sebastianbergmann/phpunit/releases)
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/8.5.52/ChangeLog-8.5.md)
- [Commits](sebastianbergmann/phpunit@7.5.20...8.5.52)

---
updated-dependencies:
- dependency-name: phpunit/phpunit
  dependency-version: 8.5.52
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update php code labels Jan 27, 2026
rick-lam and others added 6 commits April 30, 2026 16:41
PHPUnit 8 requires setUp() and tearDown() to declare a void return
type, otherwise the test run fails with a fatal error.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
PHPUnit 8 writes a .phpunit.result.cache file to the project root
to speed up subsequent runs. It is local-only state and should not
be tracked.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The Travis app is no longer connected, so the required
continuous-integration/travis-ci check has stopped reporting and
blocks every PR. Replace .travis.yml with an equivalent GitHub
Actions workflow:

- Matrix on PHP 7.2/7.3/7.4 x prefer-lowest (true/false)
- Nightly PHP kept as an allowed-failure (experimental) entry
- Composer cache via actions/cache
- phpcs + phpunit (with clover coverage) per matrix entry
- Scrutinizer coverage upload retained, gated to push events
  on a single matrix combination
- make test-functional moved to its own job (uses docker-compose
  preinstalled on ubuntu-latest runners)

Branch protection on master still requires the
continuous-integration/travis-ci context and must be updated to the
new check names ("PHP 7.4", "Functional tests", etc.) before this
unblocks merging.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Two unrelated issues surfaced once tests actually started running on
every PR again (Travis had stopped reporting some time ago):

- src/Parse/CollationInfo.php used str_contains(), a PHP 8.0+
  function, but composer.json requires PHP ^7.2. The non-lowest
  matrix happened to pull symfony/polyfill-php80 transitively, but
  the lowest matrix did not, and the function was undefined at
  runtime. Replaced with strpos(...) !== false, which works on every
  supported PHP version with no extra dependency.

- The functional-tests job invokes docker-compose via the Makefile,
  but ubuntu-latest runners no longer ship the legacy v1 binary;
  only the docker compose v2 plugin is installed. Added a small shim
  at /usr/local/bin/docker-compose that forwards to docker compose
  so the existing Makefile keeps working unchanged.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- Drop PHP nightly from matrix: PHP 8.6-dev cannot satisfy the
  project's php ^7.2 constraint, so composer install always fails.
  GitHub Actions has no neutral indicator for allowed-failure jobs
  (unlike Travis), so removing it avoids misleading red checks.

- Replace remaining str_contains() calls in src/Parse/CreateTable.php
  with strpos(...) !== false. str_contains() is PHP 8.0+ but the
  project requires php ^7.2; the lowest-resolution matrix has no
  symfony/polyfill-php80 transitively, so these crashed at runtime.

- Functional-tests job needs vendor/ on the host because the morphism
  container mounts the repo at /srv. Added a Setup PHP + composer
  install step before invoking make test-functional.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Commit c97c569 ("charset & collation diff utf8mb3 as utf8") added
utf8mb3 -> utf8 normalization to setCollation() but not to
setCharset(). MySQL 8's mysqldump emits CHARSET=utf8mb3 at the table
level and COLLATE utf8_general_ci at the column level, which
produced a "COLLATION 'utf8_general_ci' is not valid for CHARACTER
SET 'utf8'" failure when morphism lint parsed its own dump.

Mirror the existing collation-side normalization in setCharset so
both halves agree.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@rick-lam rick-lam merged commit 65f5d25 into master Apr 30, 2026
8 checks passed
@dependabot dependabot Bot deleted the dependabot/composer/phpunit/phpunit-8.5.52 branch April 30, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file php Pull requests that update php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant