-
Notifications
You must be signed in to change notification settings - Fork 6
Description
We have a lot of problems with tests that uses require or include, because in PHPT the tests are running in another folder (PHP_HEAD for example).
---- EXPECTED OUTPUT
string(11) "Hello world"
---- ACTUAL OUTPUT
Warning: include(php_cli_server.inc): failed to open stream: No such file or directory in /usr/src/phpt/php_cli_server_001.php on line 2
Warning: include(): Failed opening 'php_cli_server.inc' for inclusion (include_path='.:/usr/local/lib/php') in /usr/src/phpt/php_cli_server_001.php on line 2
Fatal error: Uncaught Error: Call to undefined function php_cli_server_start() in /usr/src/phpt/php_cli_server_001.php:3
Stack trace:
#0 {main}
thrown in /usr/src/phpt/php_cli_server_001.php on line 3
---- FAILED
Maybe would be a good idea if phptt would run the test in the original folder where the phpt file is located to avoid this error.