1--TEST--
2file_get_contents() function : basic functionality
3--CREDITS--
4Dave Kelsey <d_kelsey@uk.ibm.com>
5--FILE--
6<?php
7
8$file_path = __DIR__;
9include($file_path."/file.inc");
10
11echo "*** Testing the basic functionality of the file_get_contents() function ***\n";
12
13echo "-- Testing with simple valid data file --\n";
14
15
16create_files($file_path, 1, "text", 0755, 100, "w", "file", 1, "byte");
17var_dump( file_get_contents($file_path."/file1.tmp") );
18delete_files($file_path, 1);
19
20echo "\n-- Testing with empty file --\n";
21
22create_files($file_path, 1, "empty", 0755, 100, "w", "file", 1, "byte");
23var_dump( file_get_contents($file_path."/file1.tmp") );
24
25echo "\n*** Done ***";
26?>
27--CLEAN--
28<?php
29$file_path = __DIR__;
30include($file_path."/file.inc");
31delete_files($file_path, 1);
32?>
33--EXPECT--
34*** Testing the basic functionality of the file_get_contents() function ***
35-- Testing with simple valid data file --
36string(100) "text text text text text text text text text text text text text text text text text text text text "
37
38-- Testing with empty file --
39string(0) ""
40
41*** Done ***
42