Temporary file used by `SourceMapper` may be deleted prematurely · Issue #6965 · sebastianbergmann/phpunit · GitHub
Skip to content

Temporary file used by SourceMapper may be deleted prematurely #6965

Closed

Description

@mbeccati
Q A
PHPUnit version 13.3.3
PHP version 8.4+
Installation Method Composer

Summary

The Symfony Test suite on my CI has started failing since a couple of weeks. The failures started when PHPUnit switched from 13.3.1 to 13.3.2, as far as I can tell. I'm testing 8.4, 8.5 and master and all fail the same way.

Looks very similar to #6503

Current behavior

There were 123 errors:

1) Symfony\Component\Mailer\Tests\Exception\UnsupportedSchemeExceptionTest::testMessageWhereSchemeIsPartOfSchemeToPackageMap#0 with data ('ahasend', 'symfony/aha-send-mailer')
PHPUnit\Framework\Exception: Warning: file_get_contents(/tmp/phpunit_13rmmf9pg2tjcwdbQ2I): Failed to open stream: No such file or directory in /home/runner/work/php-latest-builds/php-latest-builds/.phpunit/phpunit-13-0/src/TextUI/Configuration/SourceMapper.php on line 50

/home/runner/work/php-latest-builds/php-latest-builds/.phpunit/phpunit-13-0/phpunit:104
/home/runner/work/php-latest-builds/php-latest-builds/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php:470
/home/runner/work/php-latest-builds/php-latest-builds/vendor/symfony/phpunit-bridge/bin/simple-phpunit:13
...
123) Symfony\Bundle\FrameworkBundle\Tests\Controller\ControllerHelperTest::testAddFlash
PHPUnit\Framework\Exception: Warning: file_get_contents(/tmp/phpunit_13rmmf9pg2tjcwdbQ2I): Failed to open stream: No such file or directory in /home/runner/work/php-latest-builds/php-latest-builds/.phpunit/phpunit-13-0/src/TextUI/Configuration/SourceMapper.php on line 50

/home/runner/work/php-latest-builds/php-latest-builds/.phpunit/phpunit-13-0/phpunit:104
/home/runner/work/php-latest-builds/php-latest-builds/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php:470
/home/runner/work/php-latest-builds/php-latest-builds/vendor/symfony/phpunit-bridge/bin/simple-phpunit:13

How to reproduce

Fresh clone of SF 7.4, composer install and ./phpunit with the --log-junit option.

Expected behavior

No such errors

Activity

  1. changed the title [-]Temporary file used by SourceMapper may be deleted prematurely[/-] [+]Temporary file used by `SourceMapper` may be deleted prematurely[/+] on Sep 9, 2026
  2. added a commit that references this issue on Sep 9, 2026
    f29248b
  3. locked as resolved and limited conversation to collaborators on Oct 10, 2026
  4. added a commit that references this issue on Oct 19, 2026
    747461d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions