예제 #1
0
 public function indexAction()
 {
     $this->view->config = Zend_Registry::get('config');
     $this->view->available_version = USVN_Update::getUSVNAvailableVersion();
 }
예제 #2
0
파일: UpdateTest.php 프로젝트: phpscr/usvn
 public function test_updateUSVNAvailableVersionNumber()
 {
     USVN_Update::updateUSVNAvailableVersionNumber();
     $this->assertEquals("1.0.1", USVN_Update::getUSVNAvailableVersion());
     $config = Zend_Registry::get('config');
     $this->assertNotEquals(0, $config->update->lastcheckforupdate);
 }