S
S
Sergey Beresnev2012-12-07 09:39:11
PHP
Sergey Beresnev, 2012-12-07 09:39:11

Set cookie when testing via codeception

I do acceptance tests. You need to set a cookie (using PhpBrowser). Can anyone suggest how to do this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
Tonik, 2012-12-07
@Tonik

Can you clarify what PhpBrowser is? In combination with codeception, nothing worthwhile is googled

G
Gleb Starkov, 2012-12-07
@colonel

I also don’t know what PhpBrowser is, but it won’t work in the forehead?:

$_COOKIE['test'] = 1;
$this->assertEquals(1, $_COOKIE['test]);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question