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:
@@ -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 ***
|
||||
|
||||
@@ -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 ***
|
||||
|
||||
Reference in New Issue
Block a user