Annotation of embedaddon/php/ext/standard/tests/streams/stream_context_set_option_error_002.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: stream_context_set_option() function - error : missing argument
                      3: --CREDITS--
                      4: Jean-Marc Fontaine <jean-marc.fontaine@alterway.fr>
                      5: # Alter Way Contribution Day 2011
                      6: --FILE--
                      7: <?php
                      8: var_dump(stream_context_set_option());
                      9: 
                     10: $context = stream_context_create();
                     11: var_dump(stream_context_set_option($context));
                     12: ?>
                     13: --EXPECTF--
                     14: Warning: stream_context_set_option(): called with wrong number or type of parameters; please RTM in %s on line %d
                     15: bool(false)
                     16: 
                     17: Warning: stream_context_set_option(): called with wrong number or type of parameters; please RTM in %s on line %d
                     18: bool(false)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>