Skip to content

build(deps-dev): update phpunit/phpunit requirement from ^10.5 to ^13.2#25

Open
dependabot[bot] wants to merge 53 commits into
mainfrom
dependabot/composer/phpunit/phpunit-tw-13.2
Open

build(deps-dev): update phpunit/phpunit requirement from ^10.5 to ^13.2#25
dependabot[bot] wants to merge 53 commits into
mainfrom
dependabot/composer/phpunit/phpunit-tw-13.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 11, 2026

Copy link
Copy Markdown
Contributor

Updates the requirements on phpunit/phpunit to permit the latest version.

Release notes

Sourced from phpunit/phpunit's releases.

PHPUnit 13.2.0

Added

  • #3387: Specify a list of tests to run
  • #4201: Handle interrupts and display current test results
  • #4501: Option to mark test as risky when it does not contribute to code coverage
  • #5757: Add assertions for ignoring whitespace differences in strings
  • #5810: Do not dump arrays and objects in failure messages of IsTrue, IsFalse, IsNull, IsFinite, IsInfinite, and IsNan constraints
  • #5838: Inherit #[RunTestsInSeparateProcesses] from parent test classes
  • #5922: assertContainsEquals() should use sebastian/comparator for element comparison
  • #6000: Report PHPT test as risky when --SKIPIF-- does not have standard-output side effect
  • #6075: Support test execution order sorted by descending duration
  • #6346: Emit warning when conflicting CLI options are used
  • #6534: Make $_dataName available to #[TestDoxFormatter] callbacks
  • #6559: Improved API for exception message expectations
  • #6565: Optional $skipWhenEmpty parameter for #[DataProvider] and #[DataProviderExternal]
  • #6566: Allow --stop-on-defect, --stop-on-error, etc. to accept an optional threshold
  • #6567: Make diff context lines configurable
  • #6574: Improve willReturnMap() with constraint support and strict matching
  • #6575: --list-test-ids CLI option and enhance --filter CLI option to support test ID syntax
  • #6577: --run-test-id <test-id> CLI option that accepts a single test ID for exact matching
  • #6579: Properly handle issues triggered outside of tests
  • #6597: Compact output (activated through --compact CLI option and PHPUNIT_COMPACT_OUTPUT=1 environment variable)
  • #6598: --disable-coverage-targeting CLI option
  • #6602: Separate configuration for branch coverage from path coverage
  • #6606: Support for partially ordered parameter sets in mock object expectations
  • #6611: Add CPU time to telemetry
  • #6681: Comment-aware variants of XML comparison assertions
  • The executionOrder attribute in the XML configuration file now accepts defects combined with any main order, as well as three-way combinations of depends/no-depends, defects, and a main order (for example, depends,defects,duration-ascending)
  • --validate-configuration CLI option to validate an XML configuration file for PHPUnit
  • Report TestDox information in Open Test Reporting XML
  • Report per-test and per-test-suite resource usage (time, memory usage, peak memory usage) in Open Test Reporting XML
  • Report number of assertions performed for each test in Open Test Reporting XML
  • Report structured comparison failure details (expected, actual, diff) in Open Test Reporting XML
  • Report random order seed in Open Test Reporting XML when test execution order is randomised

Changed

  • #5873: Chain previously registered error handler instead of silently disabling PHPUnit's error handling
  • #6535: Use sebastian/file-filter in SourceFilter::includes() for issue trigger identification
  • #6581: Allow #[IgnoreDeprecations] to be repeated
  • #6609: Skip data providers whose method cannot match --filter
  • #6685: Generate failure messages for inverse assertions by authoring negations, not by rewriting strings
  • Only errors and failures are now considered for "defect first" test reordering (tests that triggered deprecations, notices, or warnings as well as incomplete, risky, and skipped tests were previous also considered)
  • A warning is now emitted when closures are compared for equality using the IsEqual, IsEqualCanonicalizing, IsEqualIgnoringCase, IsEqualWithDelta, and TraversableContainsEqual constraints or the assertEquals(), assertEqualsCanonicalizing(), assertEqualsIgnoringCase(), assertEqualsWithDelta(), and assertContainsEquals() assertions

Deprecated

  • #6075: --order-by duration CLI option, use --order-by duration-ascending instead
  • #6075: --order-by size CLI option, use --order-by size-ascending instead

... (truncated)

Changelog

Sourced from phpunit/phpunit's changelog.

[13.2.0] - 2026-06-05

Added

  • #3387: Specify a list of tests to run
  • #4201: Handle interrupts and display current test results
  • #4501: Option to mark test as risky when it does not contribute to code coverage
  • #5757: Add assertions for ignoring whitespace differences in strings
  • #5810: Do not dump arrays and objects in failure messages of IsTrue, IsFalse, IsNull, IsFinite, IsInfinite, and IsNan constraints
  • #5838: Inherit #[RunTestsInSeparateProcesses] from parent test classes
  • #5922: assertContainsEquals() should use sebastian/comparator for element comparison
  • #6000: Report PHPT test as risky when --SKIPIF-- does not have standard-output side effect
  • #6075: Support test execution order sorted by descending duration
  • #6346: Emit warning when conflicting CLI options are used
  • #6534: Make $_dataName available to #[TestDoxFormatter] callbacks
  • #6559: Improved API for exception message expectations
  • #6565: Optional $skipWhenEmpty parameter for #[DataProvider] and #[DataProviderExternal]
  • #6566: Allow --stop-on-defect, --stop-on-error, etc. to accept an optional threshold
  • #6567: Make diff context lines configurable
  • #6574: Improve willReturnMap() with constraint support and strict matching
  • #6575: --list-test-ids CLI option and enhance --filter CLI option to support test ID syntax
  • #6577: --run-test-id <test-id> CLI option that accepts a single test ID for exact matching
  • #6579: Properly handle issues triggered outside of tests
  • #6597: Compact output (activated through --compact CLI option and PHPUNIT_COMPACT_OUTPUT=1 environment variable)
  • #6598: --disable-coverage-targeting CLI option
  • #6602: Separate configuration for branch coverage from path coverage
  • #6606: Support for partially ordered parameter sets in mock object expectations
  • #6611: Add CPU time to telemetry
  • #6681: Comment-aware variants of XML comparison assertions
  • The executionOrder attribute in the XML configuration file now accepts defects combined with any main order, as well as three-way combinations of depends/no-depends, defects, and a main order (for example, depends,defects,duration-ascending)
  • --validate-configuration CLI option to validate an XML configuration file for PHPUnit
  • Report TestDox information in Open Test Reporting XML
  • Report per-test and per-test-suite resource usage (time, memory usage, peak memory usage) in Open Test Reporting XML
  • Report number of assertions performed for each test in Open Test Reporting XML
  • Report structured comparison failure details (expected, actual, diff) in Open Test Reporting XML
  • Report random order seed in Open Test Reporting XML when test execution order is randomised

Changed

  • #5873: Chain previously registered error handler instead of silently disabling PHPUnit's error handling
  • #6535: Use sebastian/file-filter in SourceFilter::includes() for issue trigger identification
  • #6581: Allow #[IgnoreDeprecations] to be repeated
  • #6609: Skip data providers whose method cannot match --filter
  • #6685: Generate failure messages for inverse assertions by authoring negations, not by rewriting strings
  • Only errors and failures are now considered for "defect first" test reordering (tests that triggered deprecations, notices, or warnings as well as incomplete, risky, and skipped tests were previous also considered)
  • A warning is now emitted when closures are compared for equality using the IsEqual, IsEqualCanonicalizing, IsEqualIgnoringCase, IsEqualWithDelta, and TraversableContainsEqual constraints or the assertEquals(), assertEqualsCanonicalizing(), assertEqualsIgnoringCase(), assertEqualsWithDelta(), and assertContainsEquals() assertions

Deprecated

  • #6075: --order-by duration CLI option, use --order-by duration-ascending instead

... (truncated)

Commits

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 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)

ram0ng1 and others added 30 commits May 10, 2026 09:39
…e chaves estrangeiras, índices e colunas ENUM
…visos sobre índices não suportados no Postgres
- Introduced a new chunked upload mechanism in ImportModal.tsx to handle large .flarum archive uploads.
- Added fallback chunk size and retry logic for failed chunks.
- Created new API endpoints for handling chunk uploads and inspecting the uploaded files.
- Updated UploadImportController to initialize chunked uploads and validate file sizes.
- Added ChunkImportController to append chunks to the staging file and ensure idempotency.
- Implemented InspectImportController to validate the completeness of the uploaded file and retrieve metadata.
…de branches, além de melhorias na validação de identificadores e na estrutura do projeto
feat: Adicionar workflows de CI, limpeza de releases e sincronização …
…bility

- Standardized string quotes from single to double across ImportModal.tsx, index.tsx, api.ts, errorBoundary.tsx, and other files.
- Improved formatting and indentation for better code clarity.
- Updated error handling messages to ensure consistent usage of translation functions.
- Removed unnecessary comments and streamlined code logic in various functions.
- Enhanced the user interface by ensuring consistent alert messages and button labels.
…o Composer e instalação de dependências JS
Update CI and release workflows for better version management
- MysqlIntrospector: normaliza COLUMN_DEFAULT do MariaDB 10.2.7+
  (literais entre aspas, string "NULL" como NULL real) e remove
  deprecation do str_getcsv() no PHP 8.4.
- PostgresIntrospector: literais true/false do PG passam a ser
  reconhecidos como booleanos (antes eram emitidos como bareword,
  inválido no MySQL DDL).
- MysqlEmitter: suprime DEFAULT em colunas TEXT/BLOB/JSON, que o
  MySQL/MariaDB rejeitam (erro 1101); essencial no caminho PG -> MySQL,
  onde VARCHARs originais aparecem como TEXT.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Added `ImportCommand` to restore a .flarum archive into the running install.
- Implemented options for confirming the import, selecting specific components to restore (database, assets, storage, extensions).
- Introduced `CliTransferE2ETest` to validate the export and import process via CLI, ensuring data integrity across transfers.
- Created `CrossEngineTransferTest` to verify data preservation across different database engines.
- Developed support classes (`Engines`, `Fixture`, `Transfer`) to facilitate database connections and data handling for tests.
- Added unit tests for `Dialect` to ensure correct engine detection and parsing.
fix: corrigir a detecção do driver de banco de dados no enum Dialect
…s operações de exportação e importação
Adicionar suporte a progresso detalhado e contagem de linhas nas operações de exportação e importação
… implementar lógica de recuperação de estado em operações de importação e exportação
feat: Alterar permissões de diretórios para 0700 em ensureDir para maior segurança
…workflows

Troca os pins mutáveis (@v4/@v2/@v7) por SHA de 40 caracteres com
comentário de versão (§35.13 C2/C3 — o Dependabot mantém os SHAs
frescos preservando o pin), alinhando com os repos irmãos. Adiciona
step-security/harden-runner v2.19.4 em modo audit como primeiro passo
de todos os jobs (§35.13 I3), promove o ci.yml a permissions default-deny
com grant por job (§35.13 C1) e sobe o harden-runner do release-management
de v2.11.0 para v2.19.4.
Análise semanal + por PR com queries security-extended e
security-and-quality (§35.13 I2). O CodeQL não suporta PHP — essa
cobertura virá do Semgrep (security.yml) e do PHPStan/Psalm. Os passos
init/analyze levam continue-on-error porque code scanning em repo
privado exige GHAS; quando habilitado, o job vale sozinho.
claude and others added 21 commits June 11, 2026 15:02
…loqueantes

Workflow novo em duas camadas, no padrão do marketplace: rulesets
genéricos (p/php, p/security-audit, p/owasp-top-ten, p/secrets,
p/javascript) informativos + 22 regras Flarum v2 (.github/semgrep/
flarum-v2.yaml) bloqueantes em modo diff-aware no pull_request
(--baseline-commit <base> --error); em push/schedule só informam.
Checkout com fetch-depth: 0. Verificado localmente com semgrep
1.166.0: 22 regras válidas; 10 achados legados (server-side-fetch nos
jobs de export/import, capsule em testes) que não travam o gate e
ficam no SARIF para revisão.
…eante)

Workflow dedicado que varre o histórico git completo (fetch-depth: 0)
atrás de credenciais hardcoded e reprova o PR se encontrar. A varredura
local (gitleaks 8.30.0, 29 commits) achou só uma chave de exemplo em
docs num README antigo, ignorada por fingerprint no .gitleaksignore —
com isso o histórico fecha limpo e o gate nasce verde. Actions
SHA-pinadas, harden-runner em audit e permissions default-deny.
O repo não tinha .github/dependabot.yml — entra a config padrão dos
repos irmãos (composer, npm em /js e github-actions, semanal, label
dependencias). O workflow de auto-merge aprova e liga o merge automático
(squash + delete-branch) só para PRs do próprio Dependabot com update
patch/minor; major fica para revisão manual. pull_request_target sem
checkout do código do PR — nenhum código não-confiável executa com o
token de escrita.
O pacote em require-dev conflita com qualquer versão de dependência com
advisory publicado — a resolução do composer falha em vez de instalar
versão vulnerável. Verificado localmente: instala limpo, "No security
vulnerability advisories found".
O repo não tinha análise estática nenhuma. Entram phpstan/phpstan ^2.0
em require-dev, phpstan.neon (nível 6, src + extend.php) e um job novo
na CI rodando vendor/bin/phpstan — bloqueante desde o início. Os 41
achados pré-existentes ficam congelados em phpstan-baseline.neon;
código novo é cobrado no nível 6. Verificado localmente com o phpstan
2.2.2 (o mesmo que a CI resolve): [OK] No errors.
ci(security): SHA-pinagem de todas as actions + harden-runner v2.19.4
ci(security): CodeQL para o frontend JS/TS
ci(security): Security Scan com Semgrep + regras Flarum-v2 bloqueantes (diff-aware)
ci(security): varredura de segredos com Gitleaks (gate bloqueante)
ci: Dependabot + auto-merge de PRs patch/minor com CI verde
ci(security): roave/security-advisories como gate duro de CVE
ci(security): PHPStan nível 6 bloqueante com baseline dedicado
Rastreia fluxo origem→sink em PHP (SQLi, XSS, path traversal) — a
cobertura que o CodeQL não dá para PHP, relevante num repo que extrai
arquivos, monta dumps SQL e fala com múltiplos engines. vimeo/psalm ^6
em require-dev, psalm.xml com escopo src/ + extend.php e workflow
dedicado com SARIF. O gate já nasce bloqueante: taint pré-verificado
limpo localmente (psalm 6.x, "No errors found", 93,2% dos tipos
inferidos).
Updates the requirements on [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) to permit the latest version.
- [Release notes](https://github.com/sebastianbergmann/phpunit/releases)
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/13.2.0/ChangeLog-13.2.md)
- [Commits](sebastianbergmann/phpunit@10.5.0...13.2.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github

dependabot Bot commented on behalf of github Jun 11, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: dependencias. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

ram0ng1 and others added 2 commits June 11, 2026 13:39
ci(security): Psalm taint analysis (PHP data-flow), bloqueante

ram0ng1 commented Jun 11, 2026

Copy link
Copy Markdown
Owner

@dependabot recreate


Generated by Claude Code

ram0ng1 commented Jun 11, 2026

Copy link
Copy Markdown
Owner

A CI reprovou de verdade aqui: o salto PHPUnit ^10.5 → ^13.2 é de três majors e quebra a suíte (schema do phpunit.xml e APIs de teste mudaram). Para mesclar é preciso migrar a configuração (vendor/bin/phpunit --migrate-configuration) e revisar os testes no próprio branch. Fica para uma rodada dedicada.


Generated by Claude Code

Comment thread .github/workflows/ci.yml
--health-cmd="mysqladmin ping -h 127.0.0.1 --silent"
--health-interval=10s --health-timeout=5s --health-retries=20
env:
BACKUP_TEST_MYSQL: 'host=127.0.0.1;port=3306;username=root;password=;database=backup_xfer_test'
Comment thread .github/workflows/ci.yml
# Driver `mariadb` (illuminate v13's dedicated one) makes the
# connection report driverName=mariadb — the exact path that
# regressed. The harness picks it from the engine key, not env.
BACKUP_TEST_MARIADB: 'host=127.0.0.1;port=3306;username=root;password=;database=backup_xfer_test'
Comment thread .github/workflows/ci.yml
--health-cmd="pg_isready -U postgres"
--health-interval=10s --health-timeout=5s --health-retries=20
env:
BACKUP_TEST_MYSQL: 'host=127.0.0.1;port=3306;username=root;password=;database=backup_xfer_test'
Comment thread .github/workflows/ci.yml
--health-interval=10s --health-timeout=5s --health-retries=20
env:
BACKUP_TEST_MYSQL: 'host=127.0.0.1;port=3306;username=root;password=;database=backup_xfer_test'
BACKUP_TEST_MARIADB: 'host=127.0.0.1;port=3307;username=root;password=;database=backup_xfer_test'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants