title: Setting up cookies for Guzzle CookieJar
body: <p>I am doing unit testing in PHP for a site that requires authentication. Authentication is cookie based, so I need to be able to put a cookie like this in the cookie jar:</p>
  
  <pre><code>[ 'user_token' =&gt; '2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae' ] 
  </code></pre>
  
  <p>The web application can then use this known good token for the testing data, and will be able to authenticate under testing conditions to interact with the data fixtures.</p>
  
  <p>Also, it must be a secure cookie, and I (obviously) need to set the domain.</p>
  
  <p>Problem is: I don't know how to make and set this cookie and stick it in the jar. How do you do that?</p>