Behat/MinkZombieDriver — pull request #47 by aik099 (2013-11-29 19:11:26+00:00)
Title: Make `testCookie` test pass again

In Zombie.Js v2.0.0 decision was made to use https://github.com/goinstant/node-cookie module for cookie processing. It appears though, that `tough-cookie` module quotes cookie values (to follow some new RFC), while building cookie header. However PHP doesn't yet implement that RFC, which results in cookie value surrounded by quotes, when read from PHP (e.g. `"cookie-value"` instead of `cookie-value`).

This is the method in question: https://github.com/goinstant/node-cookie/blob/master/lib/cookie.js#L609-L616

I'm not sure if `tough-cookie` author would change anything to make PHP work, so in this PR I'm patching `tough-cookie` module code directly before allowing Zombie.Js to use it.