Manual Typos

0 views
Skip to first unread message

jmadsen

unread,
Jun 24, 2009, 2:50:28 AM6/24/09
to PHPSpec - Behavior Driven Design (BDD) for PHP
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
}
}
----------------
Reply all
Reply to author
Forward
0 new messages