Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid parameter type passed as Cookie #5

Closed
ilnoor opened this issue Feb 21, 2012 · 3 comments
Closed

Invalid parameter type passed as Cookie #5

ilnoor opened this issue Feb 21, 2012 · 3 comments

Comments

@ilnoor
Copy link

ilnoor commented Feb 21, 2012

Have a clean CodeIgniter framework installed.
Created file tests/acceptance/StartPageCept.php with following content

wantToTest('front page of my site'); $I->amOnPage('/'); $I->see('Welcome to CodeIgniter'); Running **php codecept.phar run acceptance --debug** and have this stack trace Couldn't test front page of my site (StartPageCept.php) Exception thrown Zend\Http\Exception\InvalidArgumentException: Invalid parameter type passed as Cookie Stack trace: #1 addCookie C:\Program Files\Zend\ZendServer\bin\PEAR\mink\vendor\fabpot\goutte\src\Goutte\Client.php:95 #2 createClient C:\Program Files\Zend\ZendServer\bin\PEAR\mink\vendor\fabpot\goutte\src\Goutte\Client.php:60 #3 doRequest C:\Program Files\Zend\ZendServer\bin\PEAR\Symfony\Component\BrowserKit\Client.php:265 #4 request C:\Program Files\Zend\ZendServer\bin\PEAR\mink\src\Behat\Mink\Driver\GoutteDriver.php:111 #5 visit C:\Program Files\Zend\ZendServer\bin\PEAR\mink\src\Behat\Mink\Session.php:127 #6 visit phar://C:/workspace/ten/codecept.phar/src/Codeception/Util/Mink.php:27
@ilnoor
Copy link
Author

ilnoor commented Feb 21, 2012

There are Zend Debugger installed on my server, which trying to set this cookie:

Set-Cookie: ZDEDebuggerPresent=php,phtml,php3; path=/

This cookie is cause of this issue. When the debugger is off, this error not occurred.

@DavertMik
Copy link
Member

Zend conflicts with Zend. How funny )

Actually I'm seeking ways to fix that. Codeception depends on Mink PEAR package which contains old ZF version.

@DavertMik
Copy link
Member

Unfortunately, this bug will exists for quite a some time :(

There is no beta release of ZF2 including this fix. So if you want to have the fix in the version used by Mink, ask the ZF devs to release beta3 first

https://github.com/Behat/Mink/issues/197#issuecomment-4224550

Samuel-Moncarey pushed a commit to Samuel-Moncarey/Codeception that referenced this issue Jan 21, 2015
Naktibalda pushed a commit to Naktibalda/Codeception that referenced this issue Dec 28, 2020
Fixes Codeception#4

- replace use of Descriptor::getTestSignature with Descriptor::getTestSignatureUnique
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

No branches or pull requests

2 participants