#jpgraph
#pma
doc
examples
js
libraries
locale
setup
sql
templates
test
classes
libraries
common
config
core
php-gettext
rte
stubs
Files_test.php
PMA_FormDisplay_tpl_test.php
PMA_Form_Processing_test.php
PMA_GIS_modifyQuery_test.php
PMA_PMD_common_test.php
PMA_SetupIndex_test.php
PMA_bookmark_test.php
PMA_browse_foreigners_test.php
PMA_central_columns_test.php
PMA_charset_conversion_test.php
PMA_check_user_privileges_test.php
PMA_config_functions_test.php
PMA_designer_test.php
PMA_display_change_password_test.php
PMA_display_create_table_test.php
PMA_display_export_test.php
PMA_escapeJsString_test.php
PMA_export_test.php
PMA_generateCommonUrl_test.php
PMA_iconv_wrapper_test.php
PMA_import_test.php
PMA_insert_edit_test.php
PMA_ip_allow_deny_test.php
PMA_js_escape_test.php
PMA_kanji-encoding_test.php
PMA_mime_test.php
PMA_mult_submits_test.php
PMA_mysql_charsets_test.php
PMA_normalization_test.php
PMA_operations_test.php
PMA_relation_cleanup_test.php
PMA_relation_test.php
PMA_resultSetHasJustOneTable_test.php
PMA_sanitize_test.php
PMA_select_server_test.php
PMA_server_common_test.php
PMA_server_privileges_test.php
PMA_server_replication_test.php
PMA_server_status_advisor_test.php
PMA_server_status_monitor_test.php
PMA_server_status_processes_test.php
PMA_server_status_queries_test.php
PMA_server_status_test.php
PMA_server_status_variables_test.php
PMA_server_user_groups_test.php
PMA_server_users_test.php
PMA_sql_query_form_test.php
PMA_sql_test.php
PMA_tbl_tracking_test.php
PMA_transformation_test.php
PMA_user_preferences_test.php
PMA_zip_extension_test.php
database_interface_test.php
sysinfo_test.php
selenium
test_data
.htaccess
AllSeleniumTests.php
Environment_test.php
PMATestCase.php
README.rst
bootstrap-dist.php
install-browserstack
install-runkit
php-noprofile.ini
php-runkit.ini
start-local-server
theme.php
wui.php
themes
CONTRIBUTING.md
ChangeLog
DCO
LICENSE
README
RELEASE-DATE-4.6.5.2
browse_foreigners.php
build.xml
changelog.php
chk_rel.php
composer.json
config.inc.php
config.sample.inc.php
db_central_columns.php
db_datadict.php
db_designer.php
db_events.php
db_export.php
db_import.php
db_operations.php
db_qbe.php
db_routines.php
db_search.php
db_sql.php
db_sql_autocomplete.php
db_sql_format.php
db_structure.php
db_tracking.php
db_triggers.php
error_report.php
export.php
favicon.ico
file_echo.php
gis_data_editor.php
import.php
import_status.php
index.php
license.php
lint.php
logout.php
navigation.php
normalization.php
phpmyadmin.css.php
phpunit.xml.dist
phpunit.xml.hhvm
phpunit.xml.nocoverage
prefs_forms.php
prefs_manage.php
print.css
robots.txt
schema_export.php
server_binlog.php
server_collations.php
server_databases.php
server_engines.php
server_export.php
server_import.php
server_plugins.php
server_privileges.php
server_replication.php
server_sql.php
server_status.php
server_status_advisor.php
server_status_monitor.php
server_status_processes.php
server_status_queries.php
server_status_variables.php
server_user_groups.php
server_variables.php
show_config_errors.php
sql.php
tbl_addfield.php
tbl_change.php
tbl_chart.php
tbl_create.php
tbl_export.php
tbl_find_replace.php
tbl_get_field.php
tbl_gis_visualization.php
tbl_import.php
tbl_indexes.php
tbl_operations.php
tbl_recent_favorite.php
tbl_relation.php
tbl_replace.php
tbl_row_action.php
tbl_select.php
tbl_sql.php
tbl_structure.php
tbl_tracking.php
tbl_triggers.php
tbl_zoom_select.php
themes.php
transformation_overview.php
transformation_wrapper.php
url.php
user_password.php
version_check.php
view_create.php
view_operations.php
CKEditor_4.6.1
Date
backup
bibelpopup
classes
config
fetch_bibel
fetch_chorbuch
html2pdf-master
html2pdf_v4.03
images
jpgraph
kalender
language
lib
lieder
livesearch
msd
overlib
pma
templates
templates_c
test
validation
++ Umstellung Luther 2017.sql
.gitattributes
.htaccess
MyOOS-Dumper-master.zip
Version8_bugs.txt
ajax.js_20170928
ansicht.php
ansicht.php_20200212
ansicht.php_20200915
ansicht.php_lut84_20180219
ansicht2.php
ansicht2.php_20200212
ansicht2.php_20200915
ansicht2.php_lut84_20180219
ausgabe.php
bes_gd.php
bibellookup.php_lut84_20180219
bibellookup_1984.php
bibellookup_2017.php
bibellookup_2017.php_20200212
changelog.php
config.inc.php
copy.js
faq_text.php
faq_text_ber.php
favicon.ico
fetch_data.php
ftp_ansicht.php
ftp_ansicht.php_20181214
func_agent.php
func_ansicht.php
func_ansicht.php_20200212
func_ansicht.php_20200915
func_ansicht.php_lut84_20180219
func_genUser.php
func_highlight.php
func_htmlclean.php
func_make_knk.php
func_make_knk_fa.php
func_make_knk_fa.php_lut84_20180219
func_make_reference_fa.php
func_make_reference_fa.php_lut84_20180219
func_rollenrechte.php
func_rollenrechte_20220202.php
func_write_lue_kat.php
further_publication.php
getSubCat.php
graph.php
graph_einzel.php
graph_hauptframe.php
graph_user.php
graph_user_hauptframe.php
hauptframe.php
hello.cgi
hello.pl
hilfe.php
historie.php
index.php
index2.php
indexframe.php
info.php
job_mail_delete_neue_user.php
job_mail_inaktiv.php
job_user_delete_neue_user.php
job_user_inaktiv.php
jquery.min.js
kat_cont.php
kat_cont.php_20201230
kat_cont.php_20221013
kat_cont_fa.php
kat_main.php
kat_main.php_lut84_20180219
kat_main_fa.php
kat_main_fa.php_lut84_20180219
katechismus.php
katechismus_fa.php
lesung.php
lieder.php
lieder.zip
livesearch.php
livestat.js
livestat.php
livestat2.php
login_log.php
logininfo.php
logout_admin.php
lue_ansicht.php
lue_bearbeiten.php
lue_erfassen.php
lue_inhalt.php
lue_inhalt.php_20200915
lue_inhalt.php_lut84_20180219
lue_notizen.php
lue_suche.php
lue_wahl.php
mail.php
make_ical.php
menuframe.php
nachsenden.php
notizen.php
outlook.php
outlook.php_20200212
outlook_ics.php
outlook_vcs.php
passwort_switch.php
pdf_gen.php
pdf_gen.php_20200915
pdf_gen.php_lut84_20180219
preview.php
profil.php
rollen.php
search_note.php
stichworte.php
suche.php
suche.php_20170928
suche_change.php
suche_simp.php
systemmail.php
test.php
test2.php
testmail.php
testmail2.php
topframe.php
upload.php
user_anlegen.php
user_bearbeiten.php
useronline.php
verweise.php
wort_bearbeiten.php
wort_bearbeiten.php_20170928
wort_erfassen.php
wort_erfassen.php_20170928
wort_exegese.php
wort_wahl.php
71 lines
1.4 KiB
PHP
71 lines
1.4 KiB
PHP
<?php
|
|
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
|
/**
|
|
* tests for sysinfo library
|
|
*
|
|
* @package PhpMyAdmin-test
|
|
*/
|
|
|
|
require_once 'libraries/sysinfo.lib.php';
|
|
|
|
/**
|
|
* tests for sysinfo library
|
|
*
|
|
* @package PhpMyAdmin-test
|
|
*/
|
|
class PMA_SysInfoTest extends PHPUnit_Framework_TestCase
|
|
{
|
|
/**
|
|
* Test for OS detection
|
|
*
|
|
* @param string $os OS name as returned by PHP_OS
|
|
* @param string $expected Expected detected OS name
|
|
*
|
|
* @return void
|
|
*
|
|
* @dataProvider sysInfoOsProvider
|
|
*/
|
|
public function testGetSysInfoOs($os, $expected)
|
|
{
|
|
$this->assertEquals(
|
|
$expected,
|
|
PMA_getSysInfoOs($os)
|
|
);
|
|
}
|
|
|
|
/**
|
|
* Data provider for OS detection tests.
|
|
*
|
|
* @return array with test data
|
|
*/
|
|
public function sysInfoOsProvider()
|
|
{
|
|
return array(
|
|
array('FreeBSD', 'Linux'),
|
|
array('Linux', 'Linux'),
|
|
array('Winnt', 'Winnt'),
|
|
array('SunOS', 'SunOS'),
|
|
);
|
|
}
|
|
|
|
/**
|
|
* Test for getting sysinfo object.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function testGetSysInfo()
|
|
{
|
|
$this->assertInstanceOf('PMA\libraries\SysInfo', PMA_getSysInfo());
|
|
}
|
|
|
|
/**
|
|
* Test for getting supported sysinfo object.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function testGetSysInfoSupported()
|
|
{
|
|
$this->assertTrue(PMA_getSysInfo()->supported());
|
|
}
|
|
}
|