Dshafik\MySQL\Tests\MySqlShimTest::mysql_fetch_DataProvider PHP Method

mysql_fetch_DataProvider() public method

    public function mysql_fetch_DataProvider()
    {
        $numeric = [['1', '1'], ['2', '2'], ['3', '3'], ['4', '4']];
        $assoc = [['one' => '1', 'two' => '1'], ['one' => '2', 'two' => '2'], ['one' => '3', 'two' => '3'], ['one' => '4', 'two' => '4']];
        $array = [['1', '1', 'one' => '1', 'two' => '1'], ['2', '2', 'one' => '2', 'two' => '2'], ['3', '3', 'one' => '3', 'two' => '3'], ['4', '4', 'one' => '4', 'two' => '4']];
        $object = [(object) ['one' => '1', 'two' => '1'], (object) ['one' => '2', 'two' => '2'], (object) ['one' => '3', 'two' => '3'], (object) ['one' => '4', 'two' => '4']];
        return [['function' => 'mysql_fetch_array', 'results' => $assoc, 'resultType' => MYSQL_ASSOC], ['function' => 'mysql_fetch_array', 'results' => $array, 'resultType' => MYSQL_BOTH], ['function' => 'mysql_fetch_array', 'results' => $numeric, 'resultType' => MYSQL_NUM], ['function' => 'mysql_fetch_assoc', 'results' => $assoc], ['function' => 'mysql_fetch_row', 'results' => $numeric], ['function' => 'mysql_fetch_object', 'results' => $object]];
    }
MySqlShimTest