Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

Use PHPUnit assertions in Behat context classes #21

Open
everzet opened this issue Jan 8, 2015 · 3 comments
Open

Use PHPUnit assertions in Behat context classes #21

everzet opened this issue Jan 8, 2015 · 3 comments

Comments

@everzet
Copy link

everzet commented Jan 8, 2015

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
Copy link
Owner

Ocramius commented Jan 8, 2015

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

@coudenysj
Copy link

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

@malukenho
Copy link
Collaborator

@coudenysj feel free to do it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants