returns(new \Mock([ 'isSuccess' => \Mock::stub()->returns($value) ])); } public function __construct($privateKey) { parent::__construct(); $this->privateKey = $privateKey; $this->verify = self::$staticVerify; } } }