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 -

excel vba - VBA Proxy auto-configuration for http requests -

php - phpWord - Tables with borders in headers/footers -