Skip to content

Instantly share code, notes, and snippets.

View Daniel-Peder's full-sized avatar

Daniel Péder Daniel-Peder

  • Prague, Central Europe
View GitHub Profile
@Daniel-Peder
Daniel-Peder / phpunit4netbeans.php
Last active February 27, 2019 08:15
netbeans 8.0.2 and PHPunit bug workaround
<?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){
@Daniel-Peder
Daniel-Peder / test-demo-gist.txt
Last active October 28, 2015 21:21
test demo gist
toto je demo gist
prostý textový dokument