Mark test as incomplete for not supported queries
Instead of printing the query, it marks the test as incomplete, this way we have a stack trace that help finding why it happened. Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
parent
0036275d3f
commit
04176cd9db
@ -15,6 +15,7 @@ use PhpMyAdmin\Dbal\DatabaseName;
|
||||
use PhpMyAdmin\Dbal\DbiExtension;
|
||||
use PhpMyAdmin\Dbal\ResultInterface;
|
||||
use PhpMyAdmin\FieldMetadata;
|
||||
use PHPUnit\Framework\Assert;
|
||||
|
||||
use function addslashes;
|
||||
use function count;
|
||||
@ -239,9 +240,7 @@ class DbiDummy implements DbiExtension
|
||||
return new DummyResult($this, $i + self::OFFSET_GLOBAL);
|
||||
}
|
||||
|
||||
echo 'Not supported query: ' . $query . "\n";
|
||||
|
||||
return false;
|
||||
Assert::markTestIncomplete('Not supported query: ' . $query);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user