Can't run PHP code or script within a unit test

  • From: "carlton" < >
  • To:
  • Subject: Can't run PHP code or script within a unit test
  • Date: Thu, 15 Nov 2012 09:46:20 -0500

Hi,

I have some unit tests that I can run via the command line but when running 
them through Netbeans the test result panel continues to display the 
"Running..." message.

Such as...

Code:

shell_exec('C:\xampp_1_7_7\php\php.exe -r "echo 'hello';"');
shell_exec('C:\xampp_1_7_7\php\php.exe C:\test_script.php"');




Something like this works where I'm not running PHP code but an executable

Code:
shell_exec('C:\xampp_1_7_7\php\php.exe -v');



Any idea why this may be happening?






Can't run PHP code or script within a unit test

carlton 11/15/2012

Project Features

About this Project

PHP was started in November 2009, is owned by Petr Jiricka, and has 235 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close