Skip to content

Commit 82653fd

Browse files
Fix CS/WS issues
1 parent 9b98a48 commit 82653fd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Runner/PHPT/PhptTestCase.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,7 @@ private function parseExternal(array &$sections): void
547547
'EXPECTF',
548548
'EXPECTREGEX',
549549
];
550+
550551
$testDirectory = dirname($this->filename) . DIRECTORY_SEPARATOR;
551552

552553
foreach ($allowSections as $section) {
@@ -562,7 +563,9 @@ private function parseExternal(array &$sections): void
562563
}
563564

564565
$contents = file_get_contents($testDirectory . $externalFilename);
566+
565567
assert($contents !== false && $contents !== '');
568+
566569
$sections[$section] = $contents;
567570
}
568571
}
@@ -697,7 +700,9 @@ private function renderForCoverage(string &$job, bool $pathCoverage, ?string $co
697700
file_put_contents($files['job'], $job);
698701

699702
$rendered = $template->render();
703+
700704
assert($rendered !== '');
705+
701706
$job = $rendered;
702707
}
703708

0 commit comments

Comments
 (0)