Skip to content

Instantly share code, notes, and snippets.

View headrevision's full-sized avatar

Fabian Kiss headrevision

View GitHub Profile
@headrevision
headrevision / HelloWorldSpec.php
Last active December 25, 2015 14:49
Abstract phpspec example
<?php
// ...
class HelloWorldSpec extends ObjectBehavior
{
function it_greets_with_hello_world()
{
$this->greet()->shouldReturn('Hello World');
}
@headrevision
headrevision / one_scenario.feature
Last active December 25, 2015 14:49
Abstract Behat example
Feature: A feature with one scenario
Scenario: A successful scenario
Given a precondition
When an event occurred
Then an outcome is achieved