Annotation of embedaddon/php/ext/standard/tests/file/fstat_variation7.phpt, revision 1.1.1.2
1.1 misho 1: --TEST--
1.1.1.2 ! misho 2: Test function fstat() by substituting argument 1 with string values.
1.1 misho 3: --FILE--
4: <?php
5: $heredoc = <<<EOT
6: hello world
7: EOT;
8:
9: $variation_array = array(
10: 'string DQ' => "string",
11: 'string SQ' => 'string',
12: 'mixed case string' => "sTrInG",
13: 'heredoc' => $heredoc,
14: );
15:
16:
17: foreach ( $variation_array as $var ) {
18: var_dump(fstat( $var ) );
19: }
20: ?>
21: ===DONE===
22: --EXPECTF--
23:
24: Warning: fstat() expects parameter 1 to be resource, string given in %s on line %d
25: bool(false)
26:
27: Warning: fstat() expects parameter 1 to be resource, string given in %s on line %d
28: bool(false)
29:
30: Warning: fstat() expects parameter 1 to be resource, string given in %s on line %d
31: bool(false)
32:
33: Warning: fstat() expects parameter 1 to be resource, string given in %s on line %d
34: bool(false)
35: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>