This file contains hidden or 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 spec\PHPSpec2\Formatter\Representer; | |
use PHPSpec2\ObjectBehavior; | |
use PHPSpec2\MethodBehavior; | |
class BasicRepresenter extends ObjectBehavior | |
{ | |
function it_should_represent_any_value() |
This file contains hidden or 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 Doctrine\Common\Annotations\AnnotationRegistry; | |
if (!class_exists('Composer\\Autoload\\ClassLoader', false)) { | |
$loader = require __DIR__.'/../vendor/autoload.php'; | |
} else { | |
$loader = new Composer\Autoload\ClassLoader(); | |
$loader->register(); | |
} |
This file contains hidden or 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 | |
trait one { | |
public $prop; | |
protected function someMethod() | |
{ | |
// do something hidden from the | |
// outside world | |
} |
This file contains hidden or 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
watch( '(src/.*\.feature)$' ) {|md| system("./console -e=test behat -fprogress #{md[1]}") } | |
watch( '(src/.*\.php)$' ) {|md| system("phpunit -c app src") } |
This file contains hidden or 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
{ | |
"require": { | |
"behat/mink": "*", | |
"fabpot/goutte": "*", | |
"alexandresalome/php-selenium": "*", | |
"facebook/php-webdriver": "*", | |
"behat/sahi-client": "*" | |
}, |
This file contains hidden or 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
require 'formula' | |
def mysql_installed? | |
`which mysql_config`.length > 0 | |
end | |
def postgres_installed? | |
`which pg_config`.length > 0 | |
end |
This file contains hidden or 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
require 'formula' | |
def mysql_installed? | |
`which mysql_config`.length > 0 | |
end | |
def postgres_installed? | |
`which pg_config`.length > 0 | |
end |
This file contains hidden or 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\Features\Context; | |
use Behat\BehatBundle\Context\BehatContext, | |
Behat\Behat\Context\TranslatedContextInterface, | |
Behat\Behat\Exception\PendingException; | |
use Behat\Gherkin\Node\PyStringNode, | |
Behat\Gherkin\Node\TableNode; |
This file contains hidden or 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 Your\MainBundle; | |
use Symfony\Bundle\FrameworkBundle\Client; | |
use Symfony\Component\HttpKernel\HttpKernelInterface; | |
class ExceptionalClient extends Client | |
{ | |
static private $catchExceptions = true; |
This file contains hidden or 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
{ | |
"require": { | |
... | |
"symfony/console": "2.0.7", | |
"symfony/dependency-injection": "2.0.7", | |
"symfony/event-dispatcher": "2.0.7", | |
"symfony/translation": "2.0.7", | |
"symfony/finder": "2.0.7", |