Skip to content

Instantly share code, notes, and snippets.

@phpspec
phpspec / existing.php
Created December 30, 2011 15:27
Example of existing syntax
<?php
class StringCalculator extends \PHPSpec\Context
{
function before()
{
$this->calculator = $this->spec(new StringCalculator);
}
function itReturnsZeroWithNoArguments()