DBExceptionTest extends TestCase
Tests the DBException class
Table of Contents
SQL | 'Some sql code' | |
---|---|---|
OPTS | ['a', 'b'] | |
createDBException() | Creates a DBException instance with a default message, code of 1, no previous type, self::SQL and self::OPTS | DBException |
testToString() | Tests to ensure that some message is returned | mixed |
Constants
SQL
public
mixed
$SQL
= 'Some sql code'
OPTS
public
mixed
$OPTS
= ['a', 'b']
Methods
createDBException()
Creates a DBException instance with a default message, code of 1, no previous type, self::SQL and self::OPTS
private
createDBException(
)
: DBException
Return values
DBException —instance
testToString()
Tests to ensure that some message is returned
public
testToString(
)
: mixed