function test_page_files3() { @define('SC_ROOT', '/some/dir'); io::staticExpects($this->any())->method('glob')->will($this->returnValue(null)); $this->assertEquals(array(), pages::page_files()); }
public function test_latest_local() { @define('SC_ROOT', ''); io::staticExpects($this->any())->method('glob')->will($this->returnValue(array('1.0.3', '..', 'test', '1.0.4', '2.0.1'))); $this->assertEquals(2000001, upgrade::latest_local()); }