Stop reporting a skipped test in IntegrationTestCase when there is no legacy test to run

This commit is contained in:
Fabien Potencier
2026-06-03 20:05:05 +02:00
parent 1a2f2ea0a3
commit 86076c87a6
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -1,5 +1,6 @@
# 3.27.2 (2026-XX-XX)
* Stop reporting a skipped test in `IntegrationTestCase` when there is no legacy test to run
* Make the `IntegrationTestCase` and `NodeTestCase` test helpers compatible with PHPUnit 11
* Cast printed expressions to string so values that cannot be converted to a string (arrays, non-`Stringable` objects, ...) report a usable stack trace at the print location
* Skip the sandbox `__toString` check on arguments whose PHP parameter type cannot implicitly coerce to string
+4 -1
View File
@@ -233,7 +233,10 @@ abstract class IntegrationTestCase extends TestCase
protected function doIntegrationTest($file, $message, $condition, $templates, $exception, $outputs, $deprecation = '')
{
if (!$outputs) {
$this->markTestSkipped('no tests to run');
// dummy test added by assembleTests() when there is no (legacy) test to run
$this->expectNotToPerformAssertions();
return;
}
if ($condition) {