Skip to content

Instantly share code, notes, and snippets.

View jubianchi's full-sized avatar
🏳️‍🌈
nyan nyan nyan

Julien BIANCHI jubianchi

🏳️‍🌈
nyan nyan nyan
View GitHub Profile
@jubianchi
jubianchi / gist:4353155
Last active December 10, 2015 00:39 — forked from anonymous/gist:4353149
<?php
namespace foo {
interface client
{
public function execute($query, array $params);
}
@jubianchi
jubianchi / ControllerTest.php
Last active December 9, 2015 22:18 — forked from anonymous/ControllerTest.php
This is an example usage of the AtoumBundle RFC with an improved syntax matching atoum's standards. https://github.com/atoum/AtoumBundle/pull/8 https://github.com/atoum/AtoumBundle/issues/15
<?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
{
<?php
use \mageekguy\atoum;
function colorized() {
$color = -1;
if(false !== ($term = getenv('TERM'))) {
if(preg_match('/\d+/', $term, $matches) > 0) {
$color = $matches[0];
}
}