Skip to content

Instantly share code, notes, and snippets.

View fezfez's full-sized avatar
🏠
Working from home

Stéphane fezfez

🏠
Working from home
View GitHub Profile
@fezfez
fezfez / composer.json
Created March 11, 2016 16:06
Conflict with swagger Annotation and Doctrine2 Annotation
{
"name": "prove/bug",
"description": "",
"type": "application",
"prefer-stable" : true,
"require": {
"zircote/swagger-php": "^2.0",
"willdurand/hateoas": "^2.9"
}
}
<?php
namespace Bug;
class ExplodeTest extends \PHPUnit_Framework_TestCase
{
public function testTest()
{
var_dump(
(function() {
@fezfez
fezfez / processIterator.php
Last active August 29, 2015 14:23
Iterate over process
<?php
class ProcessIterator implements Iterator
{
private $stream;
private $command;
private $iteration = 0;
public function __construct($command)