¡@

Home 

php Programming Glossary: load_file

test the return value of a method that triggers an error with PHPUnit

http://stackoverflow.com/questions/1225776/test-the-return-value-of-a-method-that-triggers-an-error-with-phpunit

errors via trigger_error Example of code to test function load_file file if file_exists file trigger_error file file does not exist.. to write public function testLoadFile this assertFalse load_file ' some non existent file' The problem I am having is that the.. testLoadFile this setExpectedException 'Exception' result load_file ' some non existent file' code after this point never gets executed..

Giving PHP include()'d files parent variable scope

http://stackoverflow.com/questions/2211877/giving-php-included-files-parent-variable-scope

the amount of parameters that you can't change... extract load_file 'included.php' get_defined_vars this var_dump myResult public.. public function get_something return 'foo bar' function load_file _file vars array c null if file_exists _file return false if..