PHP Class phpbb_database_test_case

Inheritance: extends PHPUnit_Extensions_Database_TestCase
Exibir arquivo Open project: phpbb/phpbb Class Usage Examples

Protected Properties

Property Type Description
$fixture_xml_data
$install_schema_file
$phpbb_schema_copy
$schema_file
$test_case_helpers

Public Methods

Method Description
__construct ( $name = NULL, array $data = [], $dataName = '' )
assertSqlResultEquals ( $expected, $sql, $message = '' )
assert_array_content_equals ( $one, $two )
createXMLDataSet ( $path )
getConnection ( )
get_database_config ( )
get_test_case_helpers ( )
new_dbal ( )
setExpectedTriggerError ( $errno, $message = '' )
setUpBeforeClass ( )
tearDownAfterClass ( )

Protected Methods

Method Description
create_connection_manager ( $config )
database_synchronisation ( array $table_column_map ) : null Performs synchronisations for a given table/column set on the database
setUp ( )
setup_extensions ( ) : array
tearDown ( )

Method Details

__construct() public method

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

assertSqlResultEquals() public method

public assertSqlResultEquals ( $expected, $sql, $message = '' )

assert_array_content_equals() public method

public assert_array_content_equals ( $one, $two )

createXMLDataSet() public method

public createXMLDataSet ( $path )

create_connection_manager() protected method

protected create_connection_manager ( $config )

database_synchronisation() protected method

Performs synchronisations for a given table/column set on the database
protected database_synchronisation ( array $table_column_map ) : null
$table_column_map array Information about the tables/columns to synchronise
return null

getConnection() public method

public getConnection ( )

get_database_config() public method

public get_database_config ( )

get_test_case_helpers() public method

new_dbal() public method

public new_dbal ( )

setExpectedTriggerError() public method

public setExpectedTriggerError ( $errno, $message = '' )

setUp() protected method

protected setUp ( )

setUpBeforeClass() public static method

public static setUpBeforeClass ( )

setup_extensions() protected static method

protected static setup_extensions ( ) : array
return array List of extensions that should be set up

tearDown() protected method

protected tearDown ( )

tearDownAfterClass() public static method

public static tearDownAfterClass ( )

Property Details

$fixture_xml_data protected_oe property

protected $fixture_xml_data

$install_schema_file protected_oe static_oe property

protected static $install_schema_file

$phpbb_schema_copy protected_oe static_oe property

protected static $phpbb_schema_copy

$schema_file protected_oe static_oe property

protected static $schema_file

$test_case_helpers protected_oe property

protected $test_case_helpers