classTableAlreadyExistsException
final class TableAlreadyExistsException
extends SimulationException
Exception thrown when attempting to create a table that already exists.
Methods§
public function __construct(string $sql, string $tableName)Parameters
$sql | string | The SQL statement. |
$tableName | string | The name of the table that already exists. |
Test cases 3
Calls 2
- static-call SimulationException::__construct() line 28
- function-call
sprintfline 28
public function getSql(): stringGet the SQL statement.
Returns
stringTest cases 1
TableAlreadyExistsExceptionTest::testGetSqlReturnsOriginalSqlcovers and calls
public function getTableName(): stringGet the name of the table that already exists.
Returns
stringTest cases 1
TableAlreadyExistsExceptionTest::testGetTableNameReturnsTableNamecovers and calls
Private surface 2§
Implementation details, listed for orientation only.
private string $sqlprivate string $tableNameTest cases 4§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 3
TableAlreadyExistsExceptionTest::testGetMessageReturnsFormattedMessagecovers and callsTableAlreadyExistsExceptionTest::testGetSqlReturnsOriginalSqlcovers and callsTableAlreadyExistsExceptionTest::testGetTableNameReturnsTableNamecovers and calls
Other tests reaching this symbol 1
CreateTableMutationTestcalls