getVersion() public static method

Deprecation:
public static getVersion ( ) : string
return string
示例#1
0
 /**
  * @return Driver
  */
 protected function _getClient()
 {
     if (class_exists('\\GuzzleHttp\\Client') && (version_compare(Env::getVersion(), '5.3', '>') || Env::isHHVM())) {
         if (method_exists('\\GuzzleHttp\\Client', 'request')) {
             $client = new Guzzle6();
         } elseif (method_exists('\\GuzzleHttp\\Client', 'createRequest')) {
             $client = new Guzzle5();
         }
     }
     if (!isset($client)) {
         // Fallback driver
         $client = new Rmccue();
     }
     return $client;
 }
示例#2
0
文件: EnvTest.php 项目: jbzoo/utils
 /**
  * @covers JBZoo\Utils\Env::getVersion
  * @uses   JBZoo\Utils\Env::isHHVM
  */
 public function testVersionCanBeRetrieved()
 {
     $this->assertInternalType('string', Env::getVersion());
 }