Skip to content

Adding a check to just see if a cookie is present or not - #202

Closed
tangix wants to merge 1 commit into
kenjis:masterfrom
tangix:master
Closed

Adding a check to just see if a cookie is present or not#202
tangix wants to merge 1 commit into
kenjis:masterfrom
tangix:master

Conversation

@tangix

@tangix tangix commented Aug 21, 2017

Copy link
Copy Markdown

In some cases I just need to test that a cookie is set and don't care about the value. Example is a login situation where a random value is assigned to the cookie at login. Passing null as value to assertResponseCookie would simply check that cookie is there.

@coveralls

Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling 4dba636 on tangix:master into ** on kenjis:master**.

@kenjis

kenjis commented Aug 27, 2017

Copy link
Copy Markdown
Owner

@tangix Thank you for your PR.
I've just added the same functionality. See #205
Because $this->anything() is more intentional than null.

@kenjis kenjis closed this Aug 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants