Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Allow defining a target PHPUnit version

Abierto
#178 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
30/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
php
Área
testing-qa

Línea de trabajo

Start by reviewing the linked commit and the existing PHPUnit-version checks in this repository. Determine how a configured target version could be distinguished from the PHPUnit version actually running; done means rules such as the non-static data-provider check can be enabled for a future version while tests still run on an older PHPUnit release.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

For large codebases (I'm looking into Drupal), it would be good to be able to define a target PHPUnit version, so that checks for later versions could be anticipated while still running previous PHPUnit versions. This would allow to do the prep work in batches - you baseline whatever is expected to be changed for the new version and break down the cleanup in multiple steps.

Example: https://github.com/phpstan/phpstan-phpunit/commit/cd9c6938f8bbfcb6da3ed5a3c7ea60873825d088 will report non-static data providers only when PHPUnit 10 is running. But we might want to have the rule enabled while the test codebase is still running PHPUnit 9.

Lenguaje dominante
PHP
Estrellas
544
Forks
58
Merge medio
2 d 1 h
PR fusionados (30 d)
5

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de phpstan/phpstan-phpunit

Todos los issues de phpstan/phpstan-phpunit

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.