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 -

asp.net mvc - Cannot display error message on Editor or EditorFor -

portaudio - How to enable WASAPI exclusive mode in pyaudio -