getLatest() public static method

Fetches the version of the latest stable release
public static getLatest ( ) : string
return string
Esempio n. 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);
 }
Esempio n. 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);
 }