Ocramius / ChangeSet

:vhs: A simple changeset list that supports operations like insert/update/delete, event triggering, commits and rollbacks
MIT License
68 stars 9 forks source link

Use PHPUnit assertions in Behat context classes #21

Open everzet opened 9 years ago

everzet commented 9 years ago

In Behat contexts, when you're making assertions, you can use PHPUnit to do that for you. The benefit of that is shorter, more familiar syntax + Behat supports PHPUnit assertions out of the box and prints proper diffs and clear messages on failure.

So this could be neatly replaced with something like this.

Ocramius commented 9 years ago

@everzet that is an idea, but I'd probably go for beberlei/assert instead. Thanks for the hint btw!

coudenysj commented 9 years ago

@Ocramius Should I use beberlei/assert and refactor it?

malukenho commented 9 years ago

@coudenysj feel free to do it.