Skip to content

Commit b5ab0e0

Browse files
authored
Assert all test files are cleaned up in CI (#8977)
Closes GH-8427
1 parent 0f7d0a3 commit b5ab0e0

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/actions/verify-generated-files/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ runs:
1212
build/gen_stub.php -f
1313
build/gen_stub.php --generate-optimizer-info
1414
ext/tokenizer/tokenizer_data_gen.php
15-
git add . -Nu && git diff --exit-code
15+
git add . -N && git diff --exit-code

ext/spl/tests/SplFileObject/fileobject_005.phpt

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@ Mark Ammann
66
--FILE--
77
<?php
88

9-
set_include_path(dirname(__DIR__));
10-
119
$path = __DIR__.DIRECTORY_SEPARATOR.'fileobject_005.txt';
1210
touch($path);
1311

14-
$fo = new SplFileObject('tests'.DIRECTORY_SEPARATOR.'fileobject_005.txt', 'w+', true);
12+
$fo = new SplFileObject($path, 'w+', true);
1513
$fo->fwrite("blahlubba");
1614
var_dump($fo->ftruncate(4));
1715

0 commit comments

Comments
 (0)