-
-
Notifications
You must be signed in to change notification settings - Fork 92
upgrade phpunit #1263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
upgrade phpunit #1263
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,46 +15,45 @@ | |
| "homepage": "https://github.com/PUGX/badge-poser/contributors" | ||
| } | ||
| ], | ||
| "minimum-stability": "beta", | ||
| "require": { | ||
| "php": "^8.3", | ||
| "ext-gd": "*", | ||
| "ext-iconv": "*", | ||
| "badges/poser": "^3.1", | ||
| "bitbucket/client": "^4.7", | ||
| "knplabs/github-api": "^3.15", | ||
| "knplabs/github-api": "^3.16", | ||
| "knplabs/packagist-api": "^2.1", | ||
| "m4tthumphrey/php-gitlab-api": "^11.14", | ||
| "predis/predis": "^2.2", | ||
| "sentry/sentry-symfony": "^5.0", | ||
| "snc/redis-bundle": "^4.7", | ||
| "symfony/asset": "^7.1", | ||
| "symfony/console": "^7.1", | ||
| "symfony/flex": "^2.4", | ||
| "symfony/framework-bundle": "^7.1", | ||
| "symfony/http-client": "^7.1", | ||
| "symfony/runtime": "^7.1", | ||
| "symfony/webpack-encore-bundle": "^2.2", | ||
| "symfony/yaml": "^7.1" | ||
| "predis/predis": "^2.3", | ||
| "sentry/sentry-symfony": "^5.6", | ||
| "snc/redis-bundle": "^4.10", | ||
| "symfony/asset": "^7.3", | ||
| "symfony/console": "^7.3", | ||
| "symfony/flex": "^2.8", | ||
| "symfony/framework-bundle": "^7.3", | ||
| "symfony/http-client": "^7.3", | ||
| "symfony/runtime": "^7.3", | ||
| "symfony/webpack-encore-bundle": "^2.3", | ||
| "symfony/yaml": "^7.3" | ||
| }, | ||
| "require-dev": { | ||
| "dg/bypass-finals": "^1.4", | ||
| "friendsofphp/php-cs-fixer": "^3.13", | ||
| "dg/bypass-finals": "^1.9", | ||
| "friendsofphp/php-cs-fixer": "^3.89", | ||
| "jangregor/phpstan-prophecy": "^1.0", | ||
| "phpspec/prophecy-phpunit": "^2.3", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: cat -n composer.json | head -60Repository: PUGX/badge-poser Length of output: 2528 🏁 Script executed: #!/bin/bash
# Search for Prophecy usage in test files
echo "=== Searching for Prophecy usage in tests ==="
find tests -type f -name "*.php" 2>/dev/null | xargs grep -l "prophesize\|Prophecy\|->reveal()" 2>/dev/null | head -20 || echo "No test files with Prophecy found or tests dir not accessible"
echo ""
echo "=== Checking for specific Prophecy imports ==="
rg "use.*Prophecy|prophesize\(|->reveal\(\)" --type php || echo "No Prophecy patterns found"Repository: PUGX/badge-poser Length of output: 2074 🌐 Web query:
💡 Result:
To use PHPUnit 12, upgrade to v2.4.0+ (adds Also note PHPUnit 12 itself requires PHP 8.3+. [4] Sources: [1] https://raw.githubusercontent.com/phpspec/prophecy-phpunit/v2.3.0/composer.json, [2] https://raw.githubusercontent.com/phpspec/prophecy-phpunit/v2.4.0/composer.json, [3] https://raw.githubusercontent.com/phpspec/prophecy-phpunit/v2.5.0/composer.json, [4] https://phpunit.de/announcements/phpunit-12.html Upgrade The PR upgrades to PHPUnit 12.4 while keeping 🤖 Prompt for AI Agents |
||
| "phpstan/extension-installer": "^1.2", | ||
| "phpstan/phpstan": "^1.9", | ||
| "phpstan/phpstan": "^1.12", | ||
| "phpstan/phpstan-phpunit": "^1.2", | ||
| "phpstan/phpstan-symfony": "^1.2", | ||
| "phpunit/phpunit": "^9.5", | ||
| "phpunit/phpunit": "^12.4", | ||
| "roave/security-advisories": "dev-latest", | ||
|
Comment on lines
+40
to
49
|
||
| "symfony/browser-kit": "^7.1", | ||
| "symfony/debug-bundle": "^7.1", | ||
| "symfony/dotenv": "^7.1", | ||
| "symfony/monolog-bundle": "^3.8", | ||
| "symfony/phpunit-bridge": "^7.1", | ||
| "symfony/stopwatch": "^7.1", | ||
| "symfony/web-profiler-bundle": "^7.1" | ||
| "symfony/browser-kit": "^7.3", | ||
| "symfony/debug-bundle": "^7.3", | ||
| "symfony/dotenv": "^7.3", | ||
| "symfony/monolog-bundle": "^3.10", | ||
| "symfony/phpunit-bridge": "^7.3", | ||
| "symfony/stopwatch": "^7.3", | ||
| "symfony/web-profiler-bundle": "^7.3" | ||
| }, | ||
| "config": { | ||
| "preferred-install": { | ||
|
|
@@ -117,7 +116,7 @@ | |
| "symfony": { | ||
| "id": "01C6YZAVV83WQGHCHEWX2SA6KC", | ||
| "allow-contrib": false, | ||
| "require": "7.1.*" | ||
| "require": "7.3.*" | ||
| }, | ||
| "branch-alias": { | ||
| "dev-master": "3.x-dev" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The php-cs-fixer rule set names '@PHP8x0Migration', '@PHP8x1Migration', and '@PHPUnit8x4Migration' don't match the standard PHP-CS-Fixer preset names (e.g. '@PHP80Migration', '@PHP81Migration', '@PHPUnit84Migration'). If these presets don't exist in the pinned php-cs-fixer version, running php-cs-fixer will fail to load the config. Verify the correct preset names for the version being used and update them accordingly.