Exemple #1
0
 /**
  * Constructor.
  *
  * @param string $appId
  * @param string $secret
  * @param Input  $input
  * @param Http   $http
  */
 public function __construct($appId, $secret, Input $input, Http $http)
 {
     $this->appId = $appId;
     $this->secret = $secret;
     $this->input = $input;
     $this->http = $http->setExpectedException('EasyWeChat\\OAuth\\OAuthHttpException');
 }
Exemple #2
0
 /**
  * Constructor.
  *
  * @param Http        $http
  * @param Transformer $transformer
  */
 public function __construct(Http $http)
 {
     $this->http = $http->setExpectedException('EasyWeChat\\Stats\\StatsHttpException');
 }