public/phpmyadmin/test/classes/Display/ResultsTest.php
/**
     * Data provider for testGetRowInfoForSpecialLinks
     *
     * @return array parameters and output
     */
Data provider for testGetRowInfoForSpecialLinks
@return array parameters and output
Data provider for testGetRowInfoForSpecialLinks @return array parameters and output
public function dataProviderForTestGetRowInfoForSpecialLinks()
    {
        $column_names = array('host', 'db', 'user', 'select_privilages');
        $fields_mata = array();
        foreach ($column_names as $column_name) {
            $field_meta = new stdClass();
            $field_meta->orgname = $column_name;
            $fields_mata[] = $field_meta;
        }
        return array(
            array(
                $fields_mata,
                count($fields_mata),
                array(
                    0 => 'localhost',
                    1 => 'phpmyadmin',
                    2 => 'pmauser',
                    3 => 'Y'
                ),
                array(
                    0 => '0',
                    1 => '3',
                    2 => '1',
                    3 => '2'
                ),
                array(
                    'host' => 'localhost',
                    'select_privilages' => 'Y',
                    'db' => 'phpmyadmin',
                    'user' => 'pmauser'
                )
            )
        );
    }
public function dataProviderForTestGetRowInfoForSpecialLinks ( ) { $ column_names = array ( 'host' , 'db' , 'user' , 'select_privilages' ) ; $ fields_mata = array ( ) ; foreach ( $ column_names as $ column_name ) { $ field_meta = new stdClass ( ) ; $ field_meta -> orgname = $ column_name ; $ fields_mata [ ] = $ field_meta ; } return array ( array ( $ fields_mata , count ( $ fields_mata ) , array ( 0 => 'localhost' , 1 => 'phpmyadmin' , 2 => 'pmauser' , 3 => 'Y' ) , array ( 0 => '0' , 1 => '3' , 2 => '1' , 3 => '2' ) , array ( 'host' => 'localhost' , 'select_privilages' => 'Y' , 'db' => 'phpmyadmin' , 'user' => 'pmauser' ) ) ) ; }
Data provider for testGetRowInfoForSpecialLinks
 @return array parameters and output
Data provider for testGetRowInfoForSpecialLinks @return array parameters and output