Skip to content

Commit

Permalink
Expand TypeMapper tests to include mysqli/pgsql (#573)
Browse files Browse the repository at this point in the history
Co-authored-by: Markus Staab <[email protected]>
  • Loading branch information
hemberger and staabm authored Mar 20, 2023
1 parent ab5b1cd commit 7526446
Show file tree
Hide file tree
Showing 10 changed files with 2,718 additions and 82 deletions.
514 changes: 514 additions & 0 deletions .phpstan-dba-mysqli.cache

Large diffs are not rendered by default.

84 changes: 32 additions & 52 deletions .phpstan-dba-pdo-mysql.cache

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions tests/default/DbaInferenceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ public function dataFileAsserts(): iterable

if ('pdo-pgsql' === getenv('DBA_REFLECTOR')) {
yield from $this->gatherAssertTypes(__DIR__ . '/data/pdo-pgsql.php');
yield from $this->gatherAssertTypes(__DIR__ . '/data/typemix-pgsql.php');
} else {
yield from $this->gatherAssertTypes(__DIR__ . '/data/pdo-mysql.php');
yield from $this->gatherAssertTypes(__DIR__ . '/data/typemix-mysql.php');
}

// DbaApi related tests cannot be replayed, because cache file keys do not reflect the used DbaApi
Expand Down
Loading

0 comments on commit 7526446

Please sign in to comment.