Skip to content

Commit e30a8a8

Browse files
committed
Merge branch 'PHP-8.4'
* PHP-8.4: [skip ci] Fix Symfony COMMUNITY build for new phpunit version
2 parents 81c0aea + c3467bd commit e30a8a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/nightly.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -622,14 +622,14 @@ jobs:
622622
php /usr/bin/composer install --no-progress --ignore-platform-req=php+
623623
php ./phpunit install
624624
# Test causes a heap-buffer-overflow but I cannot reproduce it locally...
625-
php -r '$c = file_get_contents("src/Symfony/Component/HtmlSanitizer/Tests/HtmlSanitizerCustomTest.php"); $c = str_replace("public function testSanitizeDeepNestedString()", "/** @group skip */\n public function testSanitizeDeepNestedString()", $c); file_put_contents("src/Symfony/Component/HtmlSanitizer/Tests/HtmlSanitizerCustomTest.php", $c);'
625+
php -r '$c = file_get_contents("src/Symfony/Component/HtmlSanitizer/Tests/HtmlSanitizerCustomTest.php"); $c = str_replace("public function testSanitizeDeepNestedString()", "#[\\PHPUnit\\Framework\\Attributes\\Group('"'"'skip'"'"')]\n public function testSanitizeDeepNestedString()", $c); file_put_contents("src/Symfony/Component/HtmlSanitizer/Tests/HtmlSanitizerCustomTest.php", $c);'
626626
# Buggy FFI test in Symfony, see https://github.com/symfony/symfony/issues/47668
627-
php -r '$c = file_get_contents("src/Symfony/Component/VarDumper/Tests/Caster/FFICasterTest.php"); $c = str_replace("public function testCastNonTrailingCharPointer()", "/** @group skip */\n public function testCastNonTrailingCharPointer()", $c); file_put_contents("src/Symfony/Component/VarDumper/Tests/Caster/FFICasterTest.php", $c);'
627+
php -r '$c = file_get_contents("src/Symfony/Component/VarDumper/Tests/Caster/FFICasterTest.php"); $c = str_replace("public function testCastNonTrailingCharPointer()", "#[\\PHPUnit\\Framework\\Attributes\\Group('"'"'skip'"'"')]\n public function testCastNonTrailingCharPointer()", $c); file_put_contents("src/Symfony/Component/VarDumper/Tests/Caster/FFICasterTest.php", $c);'
628628
export SYMFONY_DEPRECATIONS_HELPER=max[total]=999
629629
X=0
630630
for component in $(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -printf '%h\n'); do
631631
echo "::group::$component"
632-
php ./phpunit $component --exclude-group tty,benchmark,intl-data,transient --exclude-group skip
632+
php ./phpunit $component --exclude-group tty --exclude-group benchmark --exclude-group intl-data --exclude-group transient --exclude-group skip
633633
EXIT_CODE=$?
634634
echo -e "\n::endgroup::"
635635
if [ ${EXIT_CODE:-0} -gt 128 ]; then

0 commit comments

Comments
 (0)