classInvalidSqlException
final class InvalidSqlException
extends SchemaParseException
SQL cannot be parsed into a table definition.
Properties§
public string $sqlpublic string $reasonMethods§
public function __construct(public string $sql, public string $reason)SQL cannot be parsed into a table definition.
Parameters
$sql | string | |
$reason | string |
Calls 2
- static-call SchemaParseException::__construct() line 21
- function-call
sprintfline 21
Test cases 40§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 39
PostgreSqlEndToEndTestcallsSqliteIntegrationTestcallsDatabaseFixtureProviderTestcallsFileFixtureProviderTestcallsRowMaterializerTestcallsPlanGeneratorTestcallsPlanSchemaValidatorTestcallsRowGenerationTestcallsFixtureGeneratorTestcallsFixtureProviderTestcallsConstructorHydrationTestcallsPropertyHydrationTestcallsMySqlSchemaFetcherTestcallsMySqlSchemaParserTest::testAnUnclosedDefinitionListIsRejectedcallsMySqlSchemaParserTest::testAnUnknownKeywordDoesNotSilentlyDropLaterColumnscallsMySqlSchemaParserTest::testDdlTheParserCannotFinishReadingIsRejectedcallsMySqlSchemaParserTest::testThrowsOnEmptyInputcallsMySqlSchemaParserTest::testTruncationIsFoundEvenAfterAColumnWithItsOwnBracketscallsDefinitionIntegrityTestcallsTableDefinitionTestcallsPlatformFactoryTestcallsPostgreSqlSchemaFetcherTestcallsPostgreSqlSchemaParserTest::testParseNoParenthesescallsPostgreSqlSchemaParserTest::testParseParensEqualStartReturnsNullcallsPostgreSqlSchemaParserTest::testThrowsExceptionForInvalidSqlcallsSqliteSchemaFetcherTestcallsSqliteSchemaParserTest::testParseColumnParensEqualStartReturnsNullcallsSqliteSchemaParserTest::testParseNoParenthesescallsSqliteSchemaParserTest::testThrowsExceptionForInvalidSqlcallsDatabaseSchemaCacheTestcallsDdlDirectoryTestcallsDdlFileTestcallsSqlSchemaProviderTestcallsExpectedCreateTableExceptionTestcallsMissingColumnDefinitionsExceptionTestcallsMySqlSchemaParserTest::testThrowsExceptionForInvalidSqlcallsSchemaFetcherInterfaceTestcallsSchemaParseExceptionTest::testInvalidSqlcallsSchemaParserInterfaceTestcalls
Relations§
Instantiated in 5
- new SqlFixture\Platform\MySql\MySqlSchemaParser::parse() packages/sql-fixture/src/Platform/MySql/MySqlSchemaParser.php:28
- new SqlFixture\Platform\MySql\Schema\DefinitionIntegrity::assertNothingWasLost() packages/sql-fixture/src/Platform/MySql/Schema/DefinitionIntegrity.php:44
- new SqlFixture\Platform\MySql\Schema\TableDefinition::extractTableName() packages/sql-fixture/src/Platform/MySql/Schema/TableDefinition.php:26
- new SqlFixture\Platform\PostgreSql\PostgreSqlSchemaParser::parse() packages/sql-fixture/src/Platform/PostgreSql/PostgreSqlSchemaParser.php:33
- new SqlFixture\Platform\Sqlite\SqliteSchemaParser::parse() packages/sql-fixture/src/Platform/Sqlite/SqliteSchemaParser.php:36