bbatsche / Verify

BDD Assertions for PHPUnit and Codeception
MIT License
4 stars 0 forks source link

Crazy New API Idea #23

Closed bbatsche closed 6 years ago

bbatsche commented 9 years ago

Ok, consolidate some of our functionality with a state injection, like the following:

verify($test)->is->true();
verify($test)->isNot->false();

Is this any easier to read? I don't know, maybe? Does it help consolidate all the different methods and calls? Probably.

Possible injections:

Will have to make alias functions for singular and plurals though. Or we could go completely overboard?

expect($test)->will->not->be->true();
verify($test)->does->not->match->regExp('/\w+/');

No. I don't like that. It's absurd. Maybe a middle ground between the two?

bbatsche commented 9 years ago

Nevermind, new set: