Skip to content

Commit 3cf7606

Browse files
committed
Ref #360 - load the default context to avoid side effects
Signed-off-by: William Desportes <[email protected]>
1 parent ff8d4f3 commit 3cf7606

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Tools/TestGenerator.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ public static function build($type, $input, $output, $debug = null, $ansi = fals
163163
// set context
164164
$mariaDbVersion = (int) substr($input, $mariaDbPos + 9, 6);
165165
Context::load('MariaDb' . $mariaDbVersion);
166+
} else {
167+
// Load the default context to be sure there is no side effects
168+
Context::load('');
166169
}
167170

168171
$test = static::generate($query, $type);

0 commit comments

Comments
 (0)