getLatest() 공개 정적인 메소드

Fetches the version of the latest stable release
public static getLatest ( ) : string
리턴 string
예제 #1
0
 /**
  * @group ZF-10363
  */
 public function testFetchLatestVersion()
 {
     $actual = Zend_Version::getLatest();
     if ('not available' === $actual) {
         $this->markTestIncomplete('http://framework.zend.com/ may be down');
     }
     $this->assertRegExp('/^[1-2](\\.[0-9]+){2}/', $actual);
 }
예제 #2
0
 /**
  * @group ZF-10363
  */
 public function testFetchLatestVersion()
 {
     if (!defined('TESTS_ZEND_VERSION_ONLINE_ENABLED') || !constant('TESTS_ZEND_VERSION_ONLINE_ENABLED')) {
         $this->markTestSkipped('Testing fetchLatersVersion only works when TESTS_ZEND_VERSION_ONLINE_ENABLED is set.');
         return;
     }
     $actual = Zend_Version::getLatest();
     if ('not available' === $actual) {
         $this->markTestIncomplete('http://framework.zend.com/ may be down');
     }
     $this->assertRegExp('/^[1-2](\\.[0-9]+){2}/', $actual);
 }