--TEST-- Test opendir() function : usage variations - different data types as $path arg --SKIPIF-- --FILE-- path = $path; } public function __toString() { return $this->path; } } // heredoc string $heredoc = << ===DONE=== --CLEAN-- --EXPECTF-- *** Testing opendir() : usage variations *** -- Iteration 1 -- Warning: opendir(0,0): The system cannot find the file specified. (code: 2) in %s on line %d Warning: opendir(0): failed to open dir: %s in %s on line %d bool(false) -- Iteration 2 -- Warning: opendir(1,1): The system cannot find the file specified. (code: 2) in %s on line %d Warning: opendir(1): failed to open dir: %s in %s on line %d bool(false) -- Iteration 3 -- Warning: opendir(12345,12345): The system cannot find the file specified. (code: 2) in %s on line %d Warning: opendir(12345): failed to open dir: %s in %s on line %d bool(false) -- Iteration 4 -- Warning: opendir(-2345,-2345): The system cannot find the file specified. (code: 2) in %s on line %d Warning: opendir(-2345): failed to open dir: %s in %s on line %d bool(false) -- Iteration 5 -- Warning: opendir(10.5,10.5): The system cannot find the file specified. (code: 2) in %s on line %d Warning: opendir(10.5): failed to open dir: %s in %s on line %d bool(false) -- Iteration 6 -- Warning: opendir(-10.5,-10.5): The system cannot find the file specified. (code: 2) in %s on line %d Warning: opendir(-10.5): failed to open dir: %s in %s on line %d bool(false) -- Iteration 7 -- Warning: opendir(123456789000,123456789000): The system cannot find the file specified. (code: 2) in %s on line %d Warning: opendir(123456789000): failed to open dir: %s in %s on line %d bool(false) -- Iteration 8 -- Warning: opendir(1.23456789E-9,1.23456789E-9): The system cannot find the file specified. (code: 2) in %s on line %d Warning: opendir(1.23456789E-9): failed to open dir: %s in %s on line %d bool(false) -- Iteration 9 -- Warning: opendir(0.5,0.5): The system cannot find the file specified. (code: 2) in %s on line %d Warning: opendir(0.5): failed to open dir: %s in %s on line %d bool(false) -- Iteration 10 -- bool(false) -- Iteration 11 -- bool(false) -- Iteration 12 -- Warning: opendir(1,1): The system cannot find the file specified. (code: 2) in %s on line %d Warning: opendir(1): failed to open dir: %s in %s on line %d bool(false) -- Iteration 13 -- bool(false) -- Iteration 14 -- Warning: opendir(1,1): The system cannot find the file specified. (code: 2) in %s on line %d Warning: opendir(1): failed to open dir: %s in %s on line %d bool(false) -- Iteration 15 -- bool(false) -- Iteration 16 -- bool(false) -- Iteration 17 -- bool(false) -- Iteration 18 -- Warning: opendir() expects parameter 1 to be a valid path, array given in %s on line %d NULL -- Iteration 19 -- resource(%d) of type (stream) -- Iteration 20 -- Warning: opendir(string,string): The system cannot find the file specified. (code: 2) in %s on line %d Warning: opendir(string): failed to open dir: %s in %s on line %d bool(false) -- Iteration 21 -- resource(%d) of type (stream) -- Iteration 22 -- resource(%d) of type (stream) -- Iteration 23 -- bool(false) -- Iteration 24 -- bool(false) -- Iteration 25 -- Warning: opendir() expects parameter 1 to be a valid path, resource given in %s on line %d NULL ===DONE===