/** * @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); }
/** * @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); }