"HaveKey" Matcher has "$expected" and "$actual" switched #92

Closed
ptantiku opened this Issue Sep 1, 2012 · 0 comments

Comments

Projects
None yet
2 participants
@ptantiku

ptantiku commented Sep 1, 2012

The matcher called "HaveKey" is incorrect.

When I code, it should be:
$this->spec($branch)->should->haveKey('branch_id'); //<< this returns false

whereas:
$this->spec('branch_id')->should->haveKey($branch); //<< this returns correct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment