예제 #1
0
 /**
  * Sets the method of the curl request
  *
  * @param  string $method
  * @return Curl
  */
 private function setMethod($method)
 {
     $this->curlOptionsHandler->setOption(CURLOPT_CUSTOMREQUEST, strtoupper($method));
     return $this;
 }
 /**
  * @test
  * @group  small
  * @covers ::setOption
  * @covers ::<private>
  *
  * @expectedException \InvalidArgumentException
  */
 public function setOptionOnError()
 {
     $this->assertInstanceOf(get_class($this->curlOptionsHandler), $this->curlOptionsHandler->setOption('CURLOPT_RETURNTRANSFER', false));
 }