public/phpmyadmin/test/classes/Display/ResultsTest.php
/**
     * Data provider for testHandleNonPrintableContents
     *
     * @return array parameters and output
     */
Data provider for testHandleNonPrintableContents
@return array parameters and output
Data provider for testHandleNonPrintableContents @return array parameters and output
public function dataProviderForTestHandleNonPrintableContents()
    {
        $transformation_plugin = new Text_Plain_Link();
        $meta = new stdClass();
        $meta->type = 'BLOB';
        $meta->orgtable = 'bar';
        $url_params = array('db' => 'foo', 'table' => 'bar');
        return array(
            array(
                true,
                true,
                'BLOB',
                '1001',
                [Core::class, 'mimeDefaultFunction'],
                [],
                [Core::class, 'mimeDefaultFunction'],
                $meta,
                $url_params,
                null,
                '<a href="tbl_get_field.php?db=foo&amp;table=bar&amp;server=0'
                . '&amp;lang=en'
                . '" class="disableAjax">1001</a>'
            ),
            array(
                true,
                true,
                'BLOB',
                hex2bin('123456'),
                [Core::class, 'mimeDefaultFunction'],
                [],
                [Core::class, 'mimeDefaultFunction'],
                $meta,
                $url_params,
                null,
                '<a href="tbl_get_field.php?db=foo&amp;table=bar&amp;server=0'
                . '&amp;lang=en'
                . '" class="disableAjax">0x123456</a>'
            ),
            array(
                true,
                false,
                'BLOB',
                '1001',
                [Core::class, 'mimeDefaultFunction'],
                [],
                [Core::class, 'mimeDefaultFunction'],
                $meta,
                $url_params,
                null,
                '<a href="tbl_get_field.php?db=foo&amp;table=bar&amp;server=0'
                . '&amp;lang=en'
                . '" class="disableAjax">[BLOB - 4 B]</a>'
            ),
            array(
                false,
                false,
                'BINARY',
                '1001',
                $transformation_plugin,
                [],
                [Core::class, 'mimeDefaultFunction'],
                $meta,
                $url_params,
                null,
                '1001'
            ),
            array(
                false,
                true,
                'GEOMETRY',
                null,
                '',
                [],
                [Core::class, 'mimeDefaultFunction'],
                $meta,
                $url_params,
                null,
                '[GEOMETRY - NULL]'
            )
        );
    }
public function dataProviderForTestHandleNonPrintableContents ( ) { $ transformation_plugin = new Text_Plain_Link ( ) ; $ meta = new stdClass ( ) ; $ meta -> type = 'BLOB' ; $ meta -> orgtable = 'bar' ; $ url_params = array ( 'db' => 'foo' , 'table' => 'bar' ) ; return array ( array ( true , true , 'BLOB' , '1001' , [ Core :: class , 'mimeDefaultFunction' ] , [ ] , [ Core :: class , 'mimeDefaultFunction' ] , $ meta , $ url_params , null , '<a href="tbl_get_field.php?db=foo&amp;table=bar&amp;server=0' . '&amp;lang=en' . '" class="disableAjax">1001</a>' ) , array ( true , true , 'BLOB' , hex2bin ( '123456' ) , [ Core :: class , 'mimeDefaultFunction' ] , [ ] , [ Core :: class , 'mimeDefaultFunction' ] , $ meta , $ url_params , null , '<a href="tbl_get_field.php?db=foo&amp;table=bar&amp;server=0' . '&amp;lang=en' . '" class="disableAjax">0x123456</a>' ) , array ( true , false , 'BLOB' , '1001' , [ Core :: class , 'mimeDefaultFunction' ] , [ ] , [ Core :: class , 'mimeDefaultFunction' ] , $ meta , $ url_params , null , '<a href="tbl_get_field.php?db=foo&amp;table=bar&amp;server=0' . '&amp;lang=en' . '" class="disableAjax">[BLOB - 4 B]</a>' ) , array ( false , false , 'BINARY' , '1001' , $ transformation_plugin , [ ] , [ Core :: class , 'mimeDefaultFunction' ] , $ meta , $ url_params , null , '1001' ) , array ( false , true , 'GEOMETRY' , null , '' , [ ] , [ Core :: class , 'mimeDefaultFunction' ] , $ meta , $ url_params , null , '[GEOMETRY - NULL]' ) ) ; }
Data provider for testHandleNonPrintableContents
 @return array parameters and output
Data provider for testHandleNonPrintableContents @return array parameters and output