tester.phar does not work.
cd tools/create-phar
php -d phar.readonly=Off create-phar.php
php tester.phar ../../tests --info --debug
# E_WARNING: proc_open(): CreateProcess failed, error code - 267
It's because the Job runs phar://D:/Web/dev/nette/tester/tools/create-phar/tester.phar/Runner/info.php and its CWD is inside PHAR. When changed here into:
strncasecmp($this->file, 'phar://', 7) === 0 ? sys_get_temp_dir() : dirname($this->file)
it will work for test files in ordinary file system, but not for the info.php inside tester.phar self.
I'm thinking about extraction into system temp dir in this case.
tester.phardoes not work.It's because the Job runs
phar://D:/Web/dev/nette/tester/tools/create-phar/tester.phar/Runner/info.phpand its CWD is inside PHAR. When changed here into:it will work for test files in ordinary file system, but not for the
info.phpinside tester.phar self.I'm thinking about extraction into system temp dir in this case.