* @license GNU General Public License, version 2 (GPL-2.0) * * For full copyright and license information, please see * the docs/CREDITS.txt file. * */ /* * @group slow */ class phpbb_version_helper_fetch_test extends phpbb_test_case { public function setUp(): void { parent::setUp(); global $phpbb_root_path, $phpEx; include_once($phpbb_root_path . 'includes/functions.' . $phpEx); $this->cache = $this->getMockBuilder('\phpbb\cache\service') ->disableOriginalConstructor() ->getMock(); $this->version_helper = new \phpbb\version_helper( $this->cache, new \phpbb\config\config(array( 'version' => '3.1.0', )), new \phpbb\file_downloader() ); } public function test_version_phpbb_com() { global $phpbb_root_path, $phpEx; include_once($phpbb_root_path . 'includes/functions.' . $phpEx); if (!phpbb_checkdnsrr('version.phpbb.com', 'A')) { $this->markTestSkipped(sprintf( 'Could not find a DNS record for hostname %s. ' . 'Assuming network is down.', 'version.phpbb.com' )); } $this->version_helper->get_versions(); // get_versions checks to make sure we got a valid versions file or // throws an exception if we did not. We don't need to test anything // here, but adding an assertion so we do not get a warning about no // assertions in this test $this->assertSame(true, true); } } 402da09145'>commitdiffstats
path: root/showdependencygraph.cgi
diff options
context:
space:
mode:
authorSimon Green <sgreen@redhat.com>2014-01-03 08:11:04 +1000
committerSimon Green <sgreen@redhat.com>2014-01-03 08:11:04 +1000
commit8c1cdef6abdd4dabc768760f182067402da09145 (patch)
treef042563e7522a8ff51fd62f0a1d2ee239298bea2 /showdependencygraph.cgi
parent44e26f0615c237fa6759bc23845a96d773e0cba1 (diff)
downloadbugs-8c1cdef6abdd4dabc768760f182067402da09145.tar
bugs-8c1cdef6abdd4dabc768760f182067402da09145.tar.gz
bugs-8c1cdef6abdd4dabc768760f182067402da09145.tar.bz2
bugs-8c1cdef6abdd4dabc768760f182067402da09145.tar.xz
bugs-8c1cdef6abdd4dabc768760f182067402da09145.zip