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_get_contents_basic", 1, "byte"); 17var_dump( file_get_contents($file_path."/file_get_contents_basic1.tmp") ); 18delete_files($file_path, 1, "file_get_contents_basic", 1); 19 20echo "\n-- Testing with empty file --\n"; 21 22create_files($file_path, 1, "empty", 0755, 100, "w", "file_get_contents_basic", 1, "byte"); 23var_dump( file_get_contents($file_path."/file_get_contents_basic1.tmp") ); 24delete_files($file_path, 1, "file_get_contents_basic", 1); 25 26echo "\n*** Done ***"; 27?> 28--EXPECT-- 29*** Testing the basic functionality of the file_get_contents() function *** 30-- Testing with simple valid data file -- 31string(100) "text text text text text text text text text text text text text text text text text text text text " 32 33-- Testing with empty file -- 34string(0) "" 35 36*** Done *** 37