PHP Class ErrorHandlerTest, phpmyadmin

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

Protected Properties

Property Type Description
$object

Public Methods

Method Description
providerForTestHandleError ( ) : array Data provider for testHandleError
testCheckSavedErrors ( ) : void Test for checkSavedErrors
testCountDisplayErrorsForDisplayFalse ( ) : void Test for countDisplayErrors
testCountDisplayErrorsForDisplayTrue ( ) : void Test for countDisplayErrors
testCountErrors ( ) : void Test for countErrors
testCountUserErrors ( ) : void Test for countUserErrors
testGetDispErrorsForDisplayFalse ( integer $errno, string $errstr, string $errfile, integer $errline, string $output_show, string $output_hide ) : void Test for getDispErrors when PHP errors are not shown
testGetDispErrorsForDisplayTrue ( integer $errno, string $errstr, string $errfile, integer $errline, string $output_show, string $output_hide ) : void Test for getDispErrors when PHP errors are shown
testHasDisplayErrors ( ) : void Test for hasDisplayErrors
testHasErrors ( ) : void Test for hasErrors
testHasUserErrors ( ) : void Test for hasUserErrors
testSliceErrors ( ) : void Test for sliceErrors

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

providerForTestHandleError() public method

Data provider for testHandleError
public providerForTestHandleError ( ) : array
return array data for testHandleError

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

testCheckSavedErrors() public method

Test for checkSavedErrors
public testCheckSavedErrors ( ) : void
return void

testCountDisplayErrorsForDisplayFalse() public method

Test for countDisplayErrors

testCountDisplayErrorsForDisplayTrue() public method

Test for countDisplayErrors

testCountErrors() public method

Test for countErrors
public testCountErrors ( ) : void
return void

testCountUserErrors() public method

Test for countUserErrors
public testCountUserErrors ( ) : void
return void

testGetDispErrorsForDisplayFalse() public method

Test for getDispErrors when PHP errors are not shown
public testGetDispErrorsForDisplayFalse ( integer $errno, string $errstr, string $errfile, integer $errline, string $output_show, string $output_hide ) : void
$errno integer error number
$errstr string error string
$errfile string error file
$errline integer error line
$output_show string expected output if showing of errors is enabled
$output_hide string expected output if showing of errors is disabled and 'sendErrorReports' is set to 'never'
return void

testGetDispErrorsForDisplayTrue() public method

Test for getDispErrors when PHP errors are shown
public testGetDispErrorsForDisplayTrue ( integer $errno, string $errstr, string $errfile, integer $errline, string $output_show, string $output_hide ) : void
$errno integer error number
$errstr string error string
$errfile string error file
$errline integer error line
$output_show string expected output if showing of errors is enabled
$output_hide string expected output if showing of errors is disabled
return void

testHasDisplayErrors() public method

Test for hasDisplayErrors
public testHasDisplayErrors ( ) : void
return void

testHasErrors() public method

Test for hasErrors
public testHasErrors ( ) : void
return void

testHasUserErrors() public method

Test for hasUserErrors
public testHasUserErrors ( ) : void
return void

testSliceErrors() public method

Test for sliceErrors
public testSliceErrors ( ) : void
return void

Property Details

$object protected property

protected $object