PHP Class DbSearchTest, phpmyadmin

Inheritance: extends PMATestCase
Show file Open project: phpmyadmin/phpmyadmin

Protected Properties

Property Type Description
$object

Public Methods

Method Description
providerForTestGetResultsRow ( ) : array Data provider for testGetResultRow
testGetResultDivs ( ) : void Test for getResultDivs
testGetResultsRow ( string $each_table, array $newsearchsqls, string $output ) : void Test for _getResultsRow
testGetSearchResults ( ) : void Test for getSearchResults
testGetSearchSqls ( ) : void Test for _getSearchSqls
testGetSelectionForm ( ) : void Test for getSelectionForm

Protected Methods

Method Description
setUp ( ) : void Sets up the fixture, for example, opens a network connection.
tearDown ( ) : void Tears down the fixture, for example, closes a network connection.

Private Methods

Method Description
_callProtectedFunction ( string $name, array $params ) : the Call protected functions by setting visibility to public.

Method Details

providerForTestGetResultsRow() public method

Data provider for testGetResultRow
public providerForTestGetResultsRow ( ) : array
return array provider for testGetResultsRow

setUp() protected method

This method is called before a test is executed.
protected setUp ( ) : void
return void

tearDown() protected method

This method is called after a test is executed.
protected tearDown ( ) : void
return void

testGetResultDivs() public method

Test for getResultDivs
public testGetResultDivs ( ) : void
return void

testGetResultsRow() public method

Test for _getResultsRow
public testGetResultsRow ( string $each_table, array $newsearchsqls, string $output ) : void
$each_table string Tables on which search is to be performed
$newsearchsqls array Contains SQL queries
$output string Expected HTML output
return void

testGetSearchResults() public method

Test for getSearchResults
public testGetSearchResults ( ) : void
return void

testGetSearchSqls() public method

Test for _getSearchSqls
public testGetSearchSqls ( ) : void
return void

testGetSelectionForm() public method

Test for getSelectionForm
public testGetSelectionForm ( ) : void
return void

Property Details

$object protected property

protected $object