Skip to content

PHPT: require with invalid path not reported #6311

@staabm

Description

@staabm
Q A
PHPUnit version 12.4-ge6071930d
PHP version 8.3.24
Installation Method cloned repo sources

Summary

running a PHPT test with a require and a non existing path does not error/warn and just runs the test

Current behavior

test will be executed

How to reproduce

--SKIPIF--
<?php declare(strict_types=1);
require __DIR__ . '/some/non/existing/file.php';

--FILE--
<?php declare(strict_types=1);

echo "hello world\n";
--EXPECT--
hello world

Expected behavior

phpunit runner warning about require of non-existant file

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugSomething is broken

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions