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

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -