Skip to content

Commit

Permalink
Fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
odan committed Sep 15, 2019
1 parent 19aaf0b commit 07fbacd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/TestCase/DatabaseTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ protected function dropTables(): void
FROM information_schema.tables
WHERE table_schema = database()');

if (!$statement) {
throw new RuntimeException('Invalid sql statement');
}

$sql = [];
while ($row = $statement->fetch(PDO::FETCH_ASSOC)) {
$sql[] = sprintf('DROP TABLE `%s`;', $row['table_name']);
Expand Down

0 comments on commit 07fbacd

Please sign in to comment.