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:
Maurício Meneghini Fauth 2022-01-18 15:39:44 -03:00
parent 0036275d3f
commit 04176cd9db
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8

View File

@ -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);
}
/**