title: Using PHPUnit to test cookies and sessions, how?
body: <p>With PHPUnit it's quite easy to test raw PHP code, but what about code that heavily relies on cookies? Sessions could be a good example.</p>
  
  <p>Is there a method that doesn't require me to setup <code>$_COOKIE</code> with data during my test? It feels like a hacky way of doing things.</p>