1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Assert all test files are cleaned up in CI (#8977)

Closes GH-8427
This commit is contained in:
Ilija Tovilo
2022-07-21 17:06:14 +02:00
committed by GitHub
parent 0f7d0a3b2a
commit b5ab0e06b8
2 changed files with 2 additions and 4 deletions

View File

@@ -12,4 +12,4 @@ runs:
build/gen_stub.php -f
build/gen_stub.php --generate-optimizer-info
ext/tokenizer/tokenizer_data_gen.php
git add . -Nu && git diff --exit-code
git add . -N && git diff --exit-code

View File

@@ -6,12 +6,10 @@ Mark Ammann
--FILE--
<?php
set_include_path(dirname(__DIR__));
$path = __DIR__.DIRECTORY_SEPARATOR.'fileobject_005.txt';
touch($path);
$fo = new SplFileObject('tests'.DIRECTORY_SEPARATOR.'fileobject_005.txt', 'w+', true);
$fo = new SplFileObject($path, 'w+', true);
$fo->fwrite("blahlubba");
var_dump($fo->ftruncate(4));