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

ext/standard: Fix test conflict with I/O tests

Closes GH-14428
This commit is contained in:
Gina Peter Banyard
2024-06-02 01:21:25 +01:00
parent 5ec26edfb6
commit 75f6132818
2 changed files with 6 additions and 10 deletions

View File

@@ -9,7 +9,7 @@ if(! in_array( "string.rot13", $filters )) die( "skip rot13 filter not available
<?php
echo "*** Testing stream_filter_remove() : basic functionality ***\n";
$file = __DIR__ . DIRECTORY_SEPARATOR . 'streamfilterTest.txt';
$file = __DIR__ . DIRECTORY_SEPARATOR . 'streamfilterTestBasics.txt';
touch( $file );
$fp = fopen( $file, 'w+' );
@@ -27,10 +27,8 @@ fclose( $fp );
?>
--CLEAN--
<?php
$file = __DIR__ . DIRECTORY_SEPARATOR . 'streamfilterTest.txt';
unlink( $file );
$file = __DIR__ . DIRECTORY_SEPARATOR . 'streamfilterTestBasics.txt';
@unlink($file);
?>
--EXPECT--
*** Testing stream_filter_remove() : basic functionality ***

View File

@@ -7,7 +7,7 @@ if(! in_array( "string.rot13", $filters )) die( "skip rot13 filter not available
?>
--FILE--
<?php
$file = __DIR__ . DIRECTORY_SEPARATOR . 'streamfilterTest.txt';
$file = __DIR__ . DIRECTORY_SEPARATOR . 'streamfilterTestErrors.txt';
touch( $file );
$fp = fopen( $file, 'w+' );
$filter = stream_filter_append( $fp, "string.rot13", STREAM_FILTER_WRITE );
@@ -35,10 +35,8 @@ fclose( $fp );
?>
--CLEAN--
<?php
$file = __DIR__ . DIRECTORY_SEPARATOR . 'streamfilterTest.txt';
unlink( $file );
$file = __DIR__ . DIRECTORY_SEPARATOR . 'streamfilterTestErrors.txt';
@unlink($file);
?>
--EXPECT--
*** Testing stream_filter_remove() : error conditions ***