php - phpunit Google_Client mock -
attempting unit testing ga processing class, can't figure out how correctly mock client object. i'm getting error mock code below.
call undefined method google_client::__phpunit_cleanup()
public function getmockgaclient() { return $this->getmockbuilder('google_client') ->setmockclassname('google_client') ->getmock(); }
to bit preemptive, i'm setting mock name passes parameter check.
Comments
Post a Comment