public/phpmyadmin/test/classes/Display/ResultsTest.php
/**
     * Data provider for testGetDataCellForNonNumericColumns
     *
     * @return array parameters and output
     */
Data provider for testGetDataCellForNonNumericColumns
@return array parameters and output
Data provider for testGetDataCellForNonNumericColumns @return array parameters and output
public function dataProviderForTestGetDataCellForNonNumericColumns()
    {
        $transformation_plugin = new Text_Plain_Link();
        $meta = new stdClass();
        $meta->db = 'foo';
        $meta->table = 'tbl';
        $meta->orgtable = 'tbl';
        $meta->type = 'BLOB';
        $meta->flags = 'blob binary';
        $meta->name = 'tblob';
        $meta->orgname = 'tblob';
        $meta2 = new stdClass();
        $meta2->db = 'foo';
        $meta2->table = 'tbl';
        $meta2->orgtable = 'tbl';
        $meta2->type = 'string';
        $meta2->flags = '';
        $meta2->decimals = 0;
        $meta2->name = 'varchar';
        $meta2->orgname = 'varchar';
        $url_params = array('db' => 'foo', 'table' => 'tbl');
        return array(
            array(
                'all',
                '1001',
                'grid_edit',
                $meta,
                array(),
                $url_params,
                false,
                [Core::class, 'mimeDefaultFunction'],
                [Core::class, 'mimeDefaultFunction'],
                array('https://www.example.com/'),
                false,
                array(),
                0,
                'binary',
                '<td class="left   hex">' . PHP_EOL
                . '    <a href="tbl_get_field.php?'
                . 'db=foo&amp;table=tbl&amp;server=0&amp;lang=en'
                . '" '
                . 'class="disableAjax">[BLOB - 4 B]</a>' . PHP_EOL
                . '</td>' . PHP_EOL
            ),
            array(
                'noblob',
                '1001',
                'grid_edit',
                $meta,
                array(),
                $url_params,
                false,
                $transformation_plugin,
                [Core::class, 'mimeDefaultFunction'],
                [],
                false,
                array(),
                0,
                'binary',
                '<td class="left grid_edit  transformed hex">' . PHP_EOL
                . '    1001' . PHP_EOL
                . '</td>' . PHP_EOL
            ),
            array(
                'noblob',
                null,
                'grid_edit',
                $meta2,
                array(),
                $url_params,
                false,
                $transformation_plugin,
                [Core::class, 'mimeDefaultFunction'],
                [],
                false,
                array(),
                0,
                0,
                '<td ' . PHP_EOL
                . '    data-decimals="0"' . PHP_EOL
                . '    data-type="string"' . PHP_EOL
                . '        class="grid_edit  null">' . PHP_EOL
                . '    <em>NULL</em>' . PHP_EOL
                . '</td>' . PHP_EOL
            ),
            array(
                'all',
                'foo bar baz',
                'grid_edit',
                $meta2,
                array(),
                $url_params,
                false,
                [Core::class, 'mimeDefaultFunction'],
                [Core::class, 'mimeDefaultFunction'],
                [],
                false,
                array(),
                0,
                0,
                '<td data-decimals="0" data-type="string" '
                . 'data-originallength="11" '
                . 'class="grid_edit ">foo bar baz</td>' . "\n"
            )
        );
    }
public function dataProviderForTestGetDataCellForNonNumericColumns ( ) { $ transformation_plugin = new Text_Plain_Link ( ) ; $ meta = new stdClass ( ) ; $ meta -> db = 'foo' ; $ meta -> table = 'tbl' ; $ meta -> orgtable = 'tbl' ; $ meta -> type = 'BLOB' ; $ meta -> flags = 'blob binary' ; $ meta -> name = 'tblob' ; $ meta -> orgname = 'tblob' ; $ meta2 = new stdClass ( ) ; $ meta2 -> db = 'foo' ; $ meta2 -> table = 'tbl' ; $ meta2 -> orgtable = 'tbl' ; $ meta2 -> type = 'string' ; $ meta2 -> flags = '' ; $ meta2 -> decimals = 0 ; $ meta2 -> name = 'varchar' ; $ meta2 -> orgname = 'varchar' ; $ url_params = array ( 'db' => 'foo' , 'table' => 'tbl' ) ; return array ( array ( 'all' , '1001' , 'grid_edit' , $ meta , array ( ) , $ url_params , false , [ Core :: class , 'mimeDefaultFunction' ] , [ Core :: class , 'mimeDefaultFunction' ] , array ( 'https://www.example.com/' ) , false , array ( ) , 0 , 'binary' , '<td class="left   hex">' . PHP_EOL . '    <a href="tbl_get_field.php?' . 'db=foo&amp;table=tbl&amp;server=0&amp;lang=en' . '" ' . 'class="disableAjax">[BLOB - 4 B]</a>' . PHP_EOL . '</td>' . PHP_EOL ) , array ( 'noblob' , '1001' , 'grid_edit' , $ meta , array ( ) , $ url_params , false , $ transformation_plugin , [ Core :: class , 'mimeDefaultFunction' ] , [ ] , false , array ( ) , 0 , 'binary' , '<td class="left grid_edit  transformed hex">' . PHP_EOL . '    1001' . PHP_EOL . '</td>' . PHP_EOL ) , array ( 'noblob' , null , 'grid_edit' , $ meta2 , array ( ) , $ url_params , false , $ transformation_plugin , [ Core :: class , 'mimeDefaultFunction' ] , [ ] , false , array ( ) , 0 , 0 , '<td ' . PHP_EOL . '    data-decimals="0"' . PHP_EOL . '    data-type="string"' . PHP_EOL . '        class="grid_edit  null">' . PHP_EOL . '    <em>NULL</em>' . PHP_EOL . '</td>' . PHP_EOL ) , array ( 'all' , 'foo bar baz' , 'grid_edit' , $ meta2 , array ( ) , $ url_params , false , [ Core :: class , 'mimeDefaultFunction' ] , [ Core :: class , 'mimeDefaultFunction' ] , [ ] , false , array ( ) , 0 , 0 , '<td data-decimals="0" data-type="string" ' . 'data-originallength="11" ' . 'class="grid_edit ">foo bar baz</td>' . " \n " ) ) ; }
Data provider for testGetDataCellForNonNumericColumns
 @return array parameters and output
Data provider for testGetDataCellForNonNumericColumns @return array parameters and output