I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2008-03-28 18:53:57-07 by vkaplich
PHP support in Test::Harness
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)
Direct Responses: Write a response