Skip to content

Commit 0e8205b

Browse files
committed
Use attribute for ignoring Laravel test
Apparently `@group` stopped working.
1 parent 455a967 commit 0e8205b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ jobs:
341341
git rev-parse HEAD
342342
php /usr/bin/composer install --no-progress --ignore-platform-reqs
343343
# Hack to disable a test that hangs
344-
php -r '$c = file_get_contents("tests/Filesystem/FilesystemTest.php"); $c = str_replace("public function testSharedGet()", "/** @group skip */\n public function testSharedGet()", $c); file_put_contents("tests/Filesystem/FilesystemTest.php", $c);'
344+
php -r '$c = file_get_contents("tests/Filesystem/FilesystemTest.php"); $c = str_replace("public function testSharedGet()", "#[\\PHPUnit\\Framework\\Attributes\\Group('"'"'skip'"'"')]\n public function testSharedGet()", $c); file_put_contents("tests/Filesystem/FilesystemTest.php", $c);'
345345
export ASAN_OPTIONS=exitcode=139
346346
php vendor/bin/phpunit --exclude-group skip || EXIT_CODE=$?
347347
if [ $EXIT_CODE -gt 128 ]; then

0 commit comments

Comments
 (0)