This file contains 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
#!/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; |
This file contains 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
#!/usr/bin/env php | |
<?php | |
var_dump(defined('STDOUT')); | |
var_dump(@fopen('php://stdout', 'w')); |
This file contains 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 | |
namespace PMSIpilot\Bundle\StambiaTestBundle\Console\Helper; | |
use Symfony\Component\Console\Helper\Helper; | |
class TableFormatterHelper extends Helper | |
{ | |
/** | |
* @return string | |
*/ |
This file contains 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 | |
use | |
mageekguy\atoum, | |
mageekguy\atoum\report\fields\runner\failures\execute\macos | |
; | |
$script->addTestAllDirectory(__DIR__ . '/tests'); | |
$cloverWriter = new atoum\writers\file('target/logs/atoum.coverage.xml'); | |
$cloverReport = new atoum\reports\asynchronous\clover(); |
This file contains 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
#!/usr/bin/env php | |
<?php | |
$output = $commands = $status = null; | |
exec('ls /usr/lib/git-core', $commands, $status); | |
$commands = array_map(function($v) { return str_replace('git-', '', $v); }, $commands); | |
$output = $reflog = $status = null; | |
exec('git reflog', $reflog, $status); | |
printf(" \033[0;34m%s\033[0;32m" . PHP_EOL, 'Git Command Stats v0.1 - Stats computation based on git\'s reflog'); |
This file contains 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 | |
use \mageekguy\atoum; | |
function colorized() { | |
$color = -1; | |
if(false !== ($term = getenv('TERM'))) { | |
if(preg_match('/\d+/', $term, $matches) > 0) { | |
$color = $matches[0]; | |
} | |
} |
This file contains 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 | |
namespace Acme\DemoBundle\Tests\Controller; | |
require_once __DIR__ . '/../../../../vendor/autoload.php'; | |
require_once __DIR__ . '/../../../../vendor/atoum/atoum/scripts/runner.php'; | |
use atoum\AtoumBundle\Test\Controller; | |
class DemoController extends Controller\ControllerTest | |
{ |
This file contains 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 | |
namespace foo { | |
interface client | |
{ | |
public function execute($query, array $params); | |
} |
This file contains 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 | |
namespace jubianchi { | |
class foo { | |
public function __construct($foo, $bar) { | |
echo $foo . '-' . $bar; | |
} | |
} | |
} | |
namespace tests\units\jubianchi { |
This file contains 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
[alias] | |
stashstash = "!f() { STASH=$(git stash); echo \"\\033[0;31mKouroukoukou roukoukou stash stash\\033[0m\"; echo \"$STASH\"; xdg-open \"http://www.youtube.com/watch?v=LpE1bJp8-4w&feature=youtu.be&t=47s\" > /dev/null 2>&1 & }; f" | |
satsh = !git stashstash |