Lines Matching refs:stream_filter_remove

2 Test stream_filter_remove() function : error conditions 
10 /* Prototype : bool stream_filter_remove(resource stream_filter)
21 echo "*** Testing stream_filter_remove() : error conditions ***\n";
23 echo "\n-- Testing stream_filter_remove() function with Zero arguments --\n";
24 var_dump( stream_filter_remove() );
26 echo "\n-- Testing stream_filter_remove() function with more than expected no. of arguments --\n";
28 var_dump( stream_filter_remove( $filter, $arg ) );
30 echo "\n-- Testing stream_filter_remove() function with unexisting stream filter --\n";
31 var_dump( stream_filter_remove( "fakefilter" ) );
33 echo "\n-- Testing stream_filter_remove() function with bad resource --\n";
34 var_dump( stream_filter_remove( $fp ) );
36 echo "\n-- Testing stream_filter_remove() function with an already removed filter --\n";
38 var_dump( stream_filter_remove( $filter ) );
39 var_dump( stream_filter_remove( $filter ) );
53 *** Testing stream_filter_remove() : error conditions ***
55 -- Testing stream_filter_remove() function with Zero arguments --
57 Warning: stream_filter_remove() expects exactly 1 parameter, 0 given in %s on line %d
60 -- Testing stream_filter_remove() function with more than expected no. of arguments --
62 Warning: stream_filter_remove() expects exactly 1 parameter, 2 given in %s on line %d
65 -- Testing stream_filter_remove() function with unexisting stream filter --
67 Warning: stream_filter_remove() expects parameter 1 to be resource, string given in %s on line %d
70 -- Testing stream_filter_remove() function with bad resource --
72 Warning: stream_filter_remove(): Invalid resource given, not a stream filter in %s on line %d
75 -- Testing stream_filter_remove() function with an already removed filter --
78 Warning: stream_filter_remove(): Invalid resource given, not a stream filter in %s on line %d