final class OverrideValidator

Rejects overrides that the declared table cannot store.

Methods§

public function assertOverridesFitSchema(TableSchema $schema, array<mixed> $overrides): void

Refuse an override the table could not hold.

Without this a misspelt column is dropped and the real one generated at random, and a null lands in a NOT NULL column to fail much later at the insert. Both look like working fixtures right up until they do not.

Parameters

$schemaTableSchema
$overridesarray<mixed>
Test cases 1
Called from 1
Calls 5

Test cases 13§

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 12

Relations§

Instantiated in 1
Method calls 1