Paddy,
I think great things of phpspec so far! (just started today)
Wanted to point out on page:
http://dev.phpspec.org/manual/en/spec.domain.specific.language.html
there are a couple of problems:
1) $flee should be $flea
2) should->beInsect() and should->beAInsect both work, but should-
>beAnInsect does not. Still doing a code trace to try to spot it; will
let you know if I find it.
thanks,
jeff
---------------
class DescribeFlea extends PHPSpec_Context {
public function itShouldBeAnInsect()
{
$flea = new Flea;
$this->spec($flea)->should->beAInsect(); // Flea::isInsect()
== TRUE
}
public function itShouldHaveNoWings()
{
$flea = new Flea;
$this->spec($flea)->shouldNot->haveWings(); // Flea::hasWings
() == FALSE
}
}
----------------