getVersion() 공개 정적인 메소드

사용 중단:
public static getVersion ( ) : string
리턴 string
예제 #1
0
파일: Auto.php 프로젝트: jbzoo/http-client
 /**
  * @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());
 }