|
Hello dear Test::Harness developer!
Is it possible to add support of php test files in Test::Harness?
Now before running the test I can define:
$ENV{HARNESS_PERL} = "/usr/bin/php";
but it doesn't work because there is a switch '-w' (in line 73 at Test/Harness.pm) and when
/usr/bin/php -w <PHP script>
executes it shows the source code of the script (see php --help).
So actually everything I need just change line 73 at Test/Harness.pm
from
$Switches = '-w';
to
$Switches = $ENV{HARNESS_SWITCHES} || '-w';
and change line 229 in Test/Harness.pm
from
split_shell( $Switches, $ENV{HARNESS_PERL_SWITCHES} ) )
to
split_shell( $Switches ) )
P.S. Unfortunaly in the last version 3.10 there are no chance to find a workaround as it was in the version 2.64 (see line 64 at Test/Harness.pm v2.64).
Thanks a lot!
-- Vitaliy (kaplich gmail.com)
|