Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
<?php | |
namespace jubianchi { | |
class foo { | |
public function __construct($foo, $bar) { | |
echo $foo . '-' . $bar; | |
} | |
} | |
} | |
namespace tests\units\jubianchi { |
# On clone le dépot tout frais pour avoir un fichier pack complet pour l'analyse (c'est + simple) | |
git clone --mirror ... | |
# On se déplace dans le répertoire du clone | |
# On fait l'état des lieux initial | |
git count-objects -v > count-objects-init.txt | |
# On exporte le verify-pack (ça prend du temps ça) | |
git verify-pack -v objects/pack/pack*.idx > verify-pack.txt |
#!/usr/bin/env php | |
<?php | |
if(count($_SERVER['argv']) === 1 || null === getPath()) { | |
fwrite(STDOUT, "---> \033[0;31mUsage :\033[0m lime [--quiet] [--no-loop] <path/to/[test_file.php|test_directory]>" . PHP_EOL); | |
exit(1); | |
} | |
function getPath() { | |
$index = count($_SERVER['argv']) - 1; |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.