title: How to write testcases for Zend framework 2 cookies?
body: <p>I have written the utility class which going to read and write cookies. I don't have an idea to write the test cases for my utility class.</p>
  
  <p>How can i write test cases by using Zend framework 2 Http/Client?<br>
  Is this mandatory to test this utility class? (since it uses default zend framework methods)</p>
  
  <pre><code>class Utility
  {
    public function read($request, $key){//code}
  
    public function write($reponse, $name, $value)
    {
     $path = '/';
     $expires = 100;
     $cookie = new SetCookie($name,$value, $expires, $path);
     $response-&gt;getHeaders()-&gt;addHeader($cookie);
    }
  }
  </code></pre>
  
  <p>--Thanks in advance</p>