Skip to content

Commit 71215c7

Browse files
staabmsebastianbergmann
authored andcommitted
fix comment
1 parent 536645d commit 71215c7

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

src/Runner/PHPT/PhptTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ private function shouldRunInSubprocess(array $sections, string $cleanCode): bool
486486
foreach ($sideEffects as $sideEffect) {
487487
if (
488488
$sideEffect === SideEffect::STANDARD_OUTPUT || // stdout is fine, we will catch it using output-buffering
489-
$sideEffect === SideEffect::INPUT_OUTPUT // IO is fine while cleanup, as it doesn't pollute the main process
489+
$sideEffect === SideEffect::INPUT_OUTPUT // IO is fine, as it doesn't pollute the main process
490490
) {
491491
continue;
492492
}

tests/end-to-end/_files/phpt-skipif-require.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
PHPT skip condition with IO operations run in main process
2+
PHPT skip condition with require() runs in subprocess
33
--SKIPIF--
44
<?php declare(strict_types=1);
55
require (__DIR__ . '/phpt-skipif-required-file.php');
Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1-
<?php
2-
1+
<?php declare(strict_types=1);
2+
/*
3+
* This file is part of PHPUnit.
4+
*
5+
* (c) Sebastian Bergmann <sebastian@phpunit.de>
6+
*
7+
* For the full copyright and license information, please view the LICENSE
8+
* file that was distributed with this source code.
9+
*/
310
namespace PhpTSkipIfRequiredFile;
411

5-
class SomeClass {}
12+
class SomeClass
13+
{
14+
}

0 commit comments

Comments
 (0)