示例#1
0
 public function indexAction()
 {
     USVN_Update::updateUSVNAvailableVersionNumber();
     $this->_helper->viewRenderer->setNoRender(true);
     $this->view->layout()->disableLayout();
     header('Cache-Control: max-age=3600, must-revalidate');
     header("Content-type: {$this->_mimetype}");
     echo file_get_contents(USVN_PUB_DIR . "/medias/" . 'usvn' . "/images/empty.png");
 }
示例#2
0
 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);
 }