Skip to content

Instantly share code, notes, and snippets.

@lchrusciel
Created July 16, 2015 08:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lchrusciel/c669ff19eaa5813626ac to your computer and use it in GitHub Desktop.
Save lchrusciel/c669ff19eaa5813626ac to your computer and use it in GitHub Desktop.
Specification template for phpspec. Put this file into .phpspec directory in a root of your project.
<?php
namespace %namespace%;
use PhpSpec\ObjectBehavior;
/**
* @author Łukasz Chruściel <lukasz.chrusciel@lakion.com>
*/
class %name% extends ObjectBehavior
{
function it_is_initializable()
{
$this->shouldHaveType('%subject%');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment