Skip to content

Instantly share code, notes, and snippets.

View tentacode's full-sized avatar
🐙
tentacoding

Gabriel Pillet tentacode

🐙
tentacoding
View GitHub Profile
@tentacode
tentacode / gist:2654132
Created May 10, 2012 16:04
Definition qui plante
appDevDebugProjectContainer:Containerobject(Symfony\Component\DependencyInjection\Definition)#1846 (14) {
["class":"Symfony\Component\DependencyInjection\Definition":private]=>
string(48) "Symfony\Bridge\Doctrine\Mapping\Driver\XmlDriver"
["file":"Symfony\Component\DependencyInjection\Definition":private]=>
NULL
["factoryClass":"Symfony\Component\DependencyInjection\Definition":private]=>
NULL
["factoryMethod":"Symfony\Component\DependencyInjection\Definition":private]=>
NULL
["factoryService":"Symfony\Component\DependencyInjection\Definition":private]=>
@tentacode
tentacode / gist:2360369
Created April 11, 2012 16:29
Vidéo raoul
Scenario Outline: Video Raoul
Given I am connected on "sitevideo.com"
Then I check the <nth-video> video in my xml file "raoul.xml"
Examples:
| nth-video |
| 1 |
| 2 |
| 3 |
@tentacode
tentacode / composer.json
Created April 4, 2012 08:34 — forked from everzet/composer.json
Install Mink with ALL available drivers
{
"require": {
"behat/mink": "*",
"fabpot/goutte": "*",
"alexandresalome/php-selenium": "*",
"facebook/php-webdriver": "*",
"behat/sahi-client": "*"
},
@tentacode
tentacode / gist:1846089
Created February 16, 2012 16:07
Metastep and pystringnode ?
<?php
/**
* @When /^I add a resource on "([^"]*)" with:$/
*/
public function iAddAResourceOnWith($resource, TableNode $data)
{
$json = $this->getJsonFromTableNode($data);
$url = $this->getUrlFromResource($resource);
return array(
@tentacode
tentacode / FusionArrayFormatter.php
Created January 13, 2012 09:46
Simple PropelFormatter independant of PropelCollection
<?php
class FusionArrayFormatter extends PropelFormatter
{
/**
* @param PDOStatement $stmt
* @return array
*/
public function format(PDOStatement $stmt)
{
@tentacode
tentacode / gist:1389156
Created November 23, 2011 16:36
Une commande pour lancer des tests Behat
<?php
namespace Pmsipilot\TestBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand,
Symfony\Component\HttpKernel\Util,
Symfony\Component\Console\Input\InputArgument,
Symfony\Component\Console\Input\InputOption,
Symfony\Component\Console\Input\InputInterface,
Symfony\Component\Console\Input\ArrayInput,