PHP Class Dshafik\MySQL\Tests\MySqlShimTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: dshafik/php7-mysql-shim

Public Properties

Property Type Description
$bin
$container
$host

Protected Properties

Property Type Description
$runtime

Public Methods

Method Description
__construct ( $name = null, array $data = [], $dataName = '' )
mysql_fetch_DataProvider ( )
mysql_fetch_no_rows_dataProvider ( )
mysql_function_invalid_result_DataProvider ( )
setUpBeforeClass ( )
tearDown ( )
tearDownAfterClass ( )
test_mysql_affected_rows ( )
test_mysql_close ( )
test_mysql_close_fail ( )
test_mysql_connect ( )
test_mysql_connect_defaults ( )
test_mysql_connect_fail_false ( )
test_mysql_connect_fail_warning ( )
test_mysql_connect_multi ( )
test_mysql_connect_new ( )
test_mysql_connect_options ( )
test_mysql_connect_options_fail ( )
test_mysql_constants ( )
test_mysql_db_query ( )
test_mysql_db_query_fail ( )
test_mysql_errno ( )
test_mysql_error ( )
test_mysql_escape_string ( )
test_mysql_escape_string_notice ( )
test_mysql_fetch ( $function, $results, $resultType = null )
test_mysql_fetch_no_rows ( $function )
test_mysql_field ( )
test_mysql_field_flags_fail ( )
test_mysql_field_len_fail ( )
test_mysql_field_name_fail ( )
test_mysql_field_table_fail ( )
test_mysql_field_type_fail ( )
test_mysql_function_invalid_result ( $function, $error, $args, $skipHHVM = false )
test_mysql_insert_id ( )
test_mysql_list_dbs ( )
test_mysql_list_fields ( )
test_mysql_list_fields_fail ( )
test_mysql_list_fields_specialchars ( )
test_mysql_list_tables ( )
test_mysql_list_tables_fail ( )
test_mysql_list_tables_specialchars ( )
test_mysql_num_fields ( )
test_mysql_num_fields_fail ( )
test_mysql_num_rows ( )
test_mysql_pconnect ( )
test_mysql_query ( )
test_mysql_query_ddl ( )
test_mysql_query_fail ( )
test_mysql_query_insert ( )
test_mysql_query_nodata ( )
test_mysql_result ( )
test_mysql_result_fail ( )
test_mysql_result_invalid_row ( )
test_mysql_result_multiple_calls ( )
test_mysql_result_prefixed ( )
test_mysql_result_prefixed_fail ( )
test_mysql_select_db ( )
test_mysql_select_db_invalid ( )
test_mysql_select_db_specialchars ( )
test_mysql_unbuffered_query ( )
test_mysql_unbuffered_query_close ( )
test_mysql_unbuffered_query_close_legacy ( )
test_mysql_unbuffered_query_fail ( )
test_mysql_unbuffered_query_num_rows ( )

Protected Methods

Method Description
assertConnection ( $mysql )
assertResult ( $result )
getConnection ( $db = 'shim_test' )
skipForHHVM ( $condition = true )

Method Details

__construct() public method

public __construct ( $name = null, array $data = [], $dataName = '' )
$data array

assertConnection() protected method

protected assertConnection ( $mysql )
$mysql

assertResult() protected method

protected assertResult ( $result )
$result

getConnection() protected method

protected getConnection ( $db = 'shim_test' )

mysql_fetch_DataProvider() public method

mysql_fetch_no_rows_dataProvider() public method

mysql_function_invalid_result_DataProvider() public method

setUpBeforeClass() public static method

public static setUpBeforeClass ( )

skipForHHVM() protected method

protected skipForHHVM ( $condition = true )

tearDown() public method

public tearDown ( )

tearDownAfterClass() public static method

public static tearDownAfterClass ( )

test_mysql_affected_rows() public method

test_mysql_close() public method

public test_mysql_close ( )

test_mysql_close_fail() public method

test_mysql_connect() public method

public test_mysql_connect ( )

test_mysql_connect_defaults() public method

test_mysql_connect_fail_false() public method

test_mysql_connect_fail_warning() public method

test_mysql_connect_multi() public method

test_mysql_connect_new() public method

test_mysql_connect_options() public method

test_mysql_connect_options_fail() public method

test_mysql_constants() public method

test_mysql_db_query() public method

public test_mysql_db_query ( )

test_mysql_db_query_fail() public method

test_mysql_errno() public method

public test_mysql_errno ( )

test_mysql_error() public method

public test_mysql_error ( )

test_mysql_escape_string() public method

test_mysql_escape_string_notice() public method

test_mysql_fetch() public method

public test_mysql_fetch ( $function, $results, $resultType = null )

test_mysql_fetch_no_rows() public method

public test_mysql_fetch_no_rows ( $function )

test_mysql_field() public method

public test_mysql_field ( )

test_mysql_field_flags_fail() public method

test_mysql_field_len_fail() public method

test_mysql_field_name_fail() public method

test_mysql_field_table_fail() public method

test_mysql_field_type_fail() public method

test_mysql_function_invalid_result() public method

public test_mysql_function_invalid_result ( $function, $error, $args, $skipHHVM = false )

test_mysql_insert_id() public method

test_mysql_list_dbs() public method

public test_mysql_list_dbs ( )

test_mysql_list_fields() public method

test_mysql_list_fields_fail() public method

test_mysql_list_fields_specialchars() public method

test_mysql_list_tables() public method

test_mysql_list_tables_fail() public method

test_mysql_list_tables_specialchars() public method

test_mysql_num_fields() public method

test_mysql_num_fields_fail() public method

test_mysql_num_rows() public method

public test_mysql_num_rows ( )

test_mysql_pconnect() public method

public test_mysql_pconnect ( )

test_mysql_query() public method

public test_mysql_query ( )

test_mysql_query_ddl() public method

test_mysql_query_fail() public method

test_mysql_query_insert() public method

test_mysql_query_nodata() public method

test_mysql_result() public method

public test_mysql_result ( )

test_mysql_result_fail() public method

test_mysql_result_invalid_row() public method

test_mysql_result_multiple_calls() public method

See also: https://github.com/dshafik/php7-mysql-shim/issues/7

test_mysql_result_prefixed() public method

test_mysql_result_prefixed_fail() public method

test_mysql_select_db() public method

test_mysql_select_db_invalid() public method

test_mysql_select_db_specialchars() public method

test_mysql_unbuffered_query() public method

test_mysql_unbuffered_query_close() public method

test_mysql_unbuffered_query_close_legacy() public method

test_mysql_unbuffered_query_fail() public method

test_mysql_unbuffered_query_num_rows() public method

Property Details

$bin static public property

static public $bin

$container static public property

static public $container

$host static public property

static public $host

$runtime protected property

protected $runtime