classColumnNotFoundException
final class ColumnNotFoundException
extends SimulationException
Exception thrown when a referenced column does not exist.
Methods§
public function __construct(string $sql, string $tableName, string $columnName)Parameters
$sql | string | The SQL statement. |
$tableName | string | The name of the table. |
$columnName | string | The name of the column that was not found. |
Test cases 4
Calls 2
- static-call SimulationException::__construct() line 34
- function-call
sprintfline 34
public function getSql(): stringGet the SQL statement.
Returns
stringTest cases 1
ColumnNotFoundExceptionTest::testGetSqlReturnsOriginalSqlcovers and calls
public function getTableName(): stringGet the name of the table.
Returns
stringTest cases 1
ColumnNotFoundExceptionTest::testGetTableNameReturnsTableNamecovers and calls
public function getColumnName(): stringGet the name of the column that was not found.
Returns
stringTest cases 1
ColumnNotFoundExceptionTest::testGetColumnNameReturnsColumnNamecovers and calls
Private surface 3§
Implementation details, listed for orientation only.
private string $sqlprivate string $tableNameprivate string $columnNameTest cases 4§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 4
ColumnNotFoundExceptionTest::testGetColumnNameReturnsColumnNamecovers and callsColumnNotFoundExceptionTest::testGetMessageReturnsFormattedMessagecovers and callsColumnNotFoundExceptionTest::testGetSqlReturnsOriginalSqlcovers and callsColumnNotFoundExceptionTest::testGetTableNameReturnsTableNamecovers and calls