interfaceSchemaResolverInterface
interface SchemaResolverInterface
Resolves a table schema by name.
A plan names its tables, so generating from one needs a lookup by name rather than by DDL or by connection.
Methods§
public function resolve(string $tableName): TableSchemaParameters
$tableName | string |
Returns
Throws
Called from 3
- method-call SqlFixture\Fixture\Generation\RowMaterializer::materialize() packages/sql-fixture/src/Fixture/Generation/RowMaterializer.php:46
- method-call SqlFixture\Fixture\PlanSchemaValidator::validate() packages/sql-fixture/src/Fixture/PlanSchemaValidator.php:36
- method-call SqlFixture\Fixture\Validation\EndpointValidator::checkEndpoint() packages/sql-fixture/src/Fixture/Validation/EndpointValidator.php:24
public function has(string $tableName): boolReports whether the named table is registered.
Parameters
$tableName | string |
Returns
boolTest cases 12§
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 11
PostgreSqlEndToEndTestcallsSqliteIntegrationTestcallsRowMaterializerTestcallsPlanGeneratorTestcallsPlanSchemaValidatorTestcallsEndpointValidatorTestcallsFixtureProviderTestcallsConstructorHydrationTestcallsPropertyHydrationTestcallsSqlSchemaProviderTestcallsStaticSchemaResolverTestcalls
Relations§
Method calls 3
- method-call SqlFixture\Fixture\Generation\RowMaterializer::materialize() packages/sql-fixture/src/Fixture/Generation/RowMaterializer.php:46
- method-call SqlFixture\Fixture\PlanSchemaValidator::validate() packages/sql-fixture/src/Fixture/PlanSchemaValidator.php:36
- method-call SqlFixture\Fixture\Validation\EndpointValidator::checkEndpoint() packages/sql-fixture/src/Fixture/Validation/EndpointValidator.php:24
Type declarations 4
- type SqlFixture\Fixture\Generation\RowMaterializer packages/sql-fixture/src/Fixture/Generation/RowMaterializer.php:26
- type SqlFixture\Fixture\PlanGenerator packages/sql-fixture/src/Fixture/PlanGenerator.php:33
- type SqlFixture\Fixture\PlanSchemaValidator packages/sql-fixture/src/Fixture/PlanSchemaValidator.php:24
- type SqlFixture\Fixture\Validation\EndpointValidator packages/sql-fixture/src/Fixture/Validation/EndpointValidator.php:22