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