fix #91: get rid of most of the yearly failing test
[m6w6/ext-http] / tests / messagebody003.phpt
1 --TEST--
2 message body append error
3 --SKIPIF--
4 <?php
5 include "skipif.inc";
6 ?>
7 --FILE--
8 <?php
9 echo "Test\n";
10
11 $file = new http\Message\Body(fopen(__FILE__, "r"));
12 try {
13 @$file->append("nope");
14 } catch (Exception $e) {
15 echo $e, "\n";
16 }
17
18 ?>
19 DONE
20 --EXPECTF--
21 Test
22 http\Exception\RuntimeException: http\Message\Body::append(): Failed to append 4 bytes to body; wrote 0 in %s:%d
23 Stack trace:
24 #0 %s(%d): http\Message\Body->append('nope')
25 #1 {main}
26 DONE