title: Unit Testing Google OAuth2 with PHP
body: <p>I'm wondering if there is some way to do unit testing using the Google API for authentication using the Google API PHP Client.</p>
  
  <p>Here is the kind of code example that I want to use around my unit testing case.
  (but i want to do more complicated things around it of course that is why i need to do unit testing)</p>
  
  <p><a href="http://code.google.com/p/google-api-php-client/source/browse/trunk/examples/userinfo/index.php" rel="nofollow">http://code.google.com/p/google-api-php-client/source/browse/trunk/examples/userinfo/index.php</a> </p>