Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions ext/standard/tests/filters/stream_filter_remove_basic.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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+' );
Expand All @@ -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 ***
Expand Down
8 changes: 3 additions & 5 deletions ext/standard/tests/filters/stream_filter_remove_error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down Expand Up @@ -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 ***
Expand Down
Loading