Last active
February 27, 2019 08:15
-
-
Save Daniel-Peder/5d21d806f3d6e989bd10c1a406e31a3f to your computer and use it in GitHub Desktop.
netbeans 8.0.2 and PHPunit bug workaround
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $phpunit_phar =__DIR__.'\\phpunit.phar'; // @edit path to Your phpunit | |
| $php_exe_path='C:\Users\[username]\AppData\Local\PHP\v5.6\php.exe'; // @edit path to Your win php | |
| array_splice($argv,-1,0,array("--")); // inject argument terminator | |
| $argv[0] = $phpunit_phar; // inject phpuit path | |
| array_unshift($argv,$php_exe_path); // inject php executable | |
| //print_r($argv); | |
| $cmd = ''; | |
| // build command line to execute | |
| foreach($argv as $arg){ | |
| $cmd .= sprintf('"%s" ',$arg); | |
| } | |
| // echo $cmd."\n"; | |
| exec($cmd); // execute |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@wandbferreira lets run it through Virustotal