public/phpmyadmin/test/classes/Config/DescriptionTest.php
/**
     * Test getting all names for configuratons
     */
Test getting all names for configuratons
Test getting all names for configuratons
public function testAll()
    {
        $nested = array(
            'Export',
            'Import',
            'Schema',
            'DBG',
            'DefaultTransformations',
            'SQLQuery',
        );
        $cfg = array();
        include './libraries/config.default.php';
        foreach ($cfg as $key => $value) {
            $this->assertGet($key);
            if ($key == 'Servers') {
                foreach ($value[1] as $item => $val) {
                    $this->assertGet($key . '/1/' . $item);
                    if ($item == 'AllowDeny') {
                        foreach ($val as $second => $val2) {
                            $this->assertGet($key . '/1/' . $item . '/' . $second);
                        }
                    }
                }
            } elseif (in_array($key, $nested)) {
                foreach ($value as $item => $val) {
                    $this->assertGet($key . '/' . $item);
                }
            }
        }
    }
public function testAll ( ) { $ nested = array ( 'Export' , 'Import' , 'Schema' , 'DBG' , 'DefaultTransformations' , 'SQLQuery' , ) ; $ cfg = array ( ) ; include './libraries/config.default.php' ; foreach ( $ cfg as $ key => $ value ) { $ this -> assertGet ( $ key ) ; if ( $ key == 'Servers' ) { foreach ( $ value [ 1 ] as $ item => $ val ) { $ this -> assertGet ( $ key . '/1/' . $ item ) ; if ( $ item == 'AllowDeny' ) { foreach ( $ val as $ second => $ val2 ) { $ this -> assertGet ( $ key . '/1/' . $ item . '/' . $ second ) ; } } } } elseif ( in_array ( $ key , $ nested ) ) { foreach ( $ value as $ item => $ val ) { $ this -> assertGet ( $ key . '/' . $ item ) ; } } } }
Test getting all names for configuratons
Test getting all names for configuratons