Skip to content

Commit 3569ec1

Browse files
committed
Improve the testParsephpMyAdminDump to re-build all the file
This is how I found the `TransactionStatement::build()` bug. Ref: 7f84694 Signed-off-by: William Desportes <williamdes@wdes.fr>
1 parent 9d47502 commit 3569ec1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/Parser/ParserLongExportsTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ public function testParsephpMyAdminDump(): void
9090
'SET @OLD_COLLATION_CONNECTION = @@COLLATION_CONNECTION */',
9191
'SET NAMES utf8mb4',
9292
], $collectedSetStatements);
93+
94+
foreach ($parser->statements as $stmt) {
95+
// Check they all build
96+
$this->assertIsString($stmt->build());
97+
}
9398
}
9499

95100
/**

0 commit comments

Comments
 (0)