/** * Specifies the subset of methods to not mock. Default is to mock all of them. * * @param array $methods * * @return PHPUnit_Framework_MockObject_MockBuilder */ public function setMethodsExcept(array $methods = []) { $this->methodsExcept = $methods; $this->setMethods(array_diff($this->generator->getClassMethods($this->type), $this->methodsExcept)); return $this; }