Pecs / BDD for PHP
pecs is a teensy behavior-driven development library for PHP 5.3, a la RSpec or JSpec. I’ve been working on it for the last week and I think it’s off to a good start. It gives you tests that look something like:
describe("Bowling", function() {
it("should score 0 for a gutter game", function() {
$bowling = new Bowling();
for ($i=0; $i < 20; $i++) {
$bowling->hit(0);
}
expect($bowling->score)->to_equal(0);
});
});
You can read more on GitHub.