davedevelopment / dspec

Spec testing tool for PHP 5.3
MIT License
12 stars 3 forks source link

Matchers #1

Open davedevelopment opened 11 years ago

davedevelopment commented 11 years ago

I've started working on this, it'll probably take the syntax:


expect($variable)->toEqual("dave");

expect(function() {
    // do stuff
})->toThrow("Exception");

As far as output goes, I intend to have basic string diffing, but will see how it goes.

Hamcrest is ok, but needs a serious overhaul in my opinion, it's not as nice to use as it could be.

davedevelopment commented 11 years ago

http://github.com/yuya-takeyama/esperance looks interesting, might leverage it

paulodiovani commented 9 years ago

Espérance is cool. Still not many assertions, yet.

I'm doing some research in https://github.com/paulodiovani/dspec-example-tests