/**
  * @covers Guzzle\Http\Curl\CurlMulti::getInstance
  */
 public function testReturnsCachedInstance()
 {
     $c = CurlMulti::getInstance();
     $this->assertInstanceOf('Guzzle\\Http\\Curl\\CurlMultiInterface', $c);
     $this->assertSame($c, CurlMulti::getInstance());
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 public function getCurlMulti()
 {
     if (!$this->curlMulti) {
         $this->curlMulti = CurlMulti::getInstance();
     }
     return $this->curlMulti;
 }