You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using UUID as binary(16) in MySQL tables.
My test is failed when I'm trying to test seeInDatabase using UUID as filter criteria.
Test failed with error: [JsonException] Malformed UTF-8 characters, possibly incorrectly encoded
php vendor/bin/codecept run unit Codeception/Module/Db/MySqlDbTest:testSeeInDatabaseWithBinary -vvv
Console output with -vvv mode:
Codeception PHP Testing Framework v5.0.10 https://helpukrainewin.org
actor is empty
Unit Tests (1) --------------------------------------------------------------------------------------------------------------------------------------------------------------
Modules:
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- MySqlDbTest: See in database with binary [Connecting To Db] {"config":{"populate":true,"cleanup":true,"reconnect":true,"waitlock":0,"dump":"tests/data/dumps/mysql.sql","populator":null,"skip_cleanup_if_failed":false,"dsn":"mysql:host=host.docker.internal;port=3102;dbname=codeception","user":"root","password":"codeception"},"options":[]}
[Db] Connected to default codeception
[Db] Disconnected from default
[Connecting To Db] {"config":{"populate":true,"cleanup":true,"reconnect":true,"waitlock":0,"dump":"tests/data/dumps/mysql.sql","populator":null,"skip_cleanup_if_failed":false,"dsn":"mysql:host=host.docker.internal;port=3102;dbname=codeception","user":"root","password":"codeception"},"options":[]}
[Db] Connected to default codeception
[Query] SELECT count(*) FROM `users` WHERE `uuid` = ?
[Parameters] ["u0011ufffdufffdKu0001ufffdrufffdufffdu001du0002Bufffdu0012u0000u0006"]
E MySqlDbTest: See in database with binary(0.19s)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Time: 00:00.213, Memory: 12.00 MB
There was 1 error:
1) MySqlDbTest: See in database with binary
Test tests/unit/Codeception/Module/Db/MySqlDbTest.php:testSeeInDatabaseWithBinary
[JsonException] Malformed UTF-8 characters, possibly incorrectly encoded
/var/www/html/src/Codeception/Module/Db.php:839
/var/www/html/tests/unit/Codeception/Module/Db/AbstractDbTest.php:69
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestCase.php:1067
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestCase.php:634
/var/www/html/vendor/codeception/codeception/src/Codeception/Test/TestCaseWrapper.php:148
/var/www/html/vendor/codeception/codeception/src/Codeception/Test/Test.php:170
/var/www/html/vendor/codeception/codeception/src/Codeception/Suite.php:130
/var/www/html/vendor/codeception/codeception/src/Codeception/SuiteManager.php:148
/var/www/html/vendor/codeception/codeception/src/Codeception/Codecept.php:260
/var/www/html/vendor/codeception/codeception/src/Codeception/Codecept.php:216
/var/www/html/vendor/codeception/codeception/src/Codeception/Command/Run.php:435
/var/www/html/vendor/symfony/console/Command/Command.php:326
/var/www/html/vendor/symfony/console/Application.php:1063
/var/www/html/vendor/symfony/console/Application.php:320
/var/www/html/vendor/symfony/console/Application.php:174
/var/www/html/vendor/codeception/codeception/src/Codeception/Application.php:112
/var/www/html/vendor/codeception/codeception/app.php:45
/var/www/html/vendor/codeception/codeception/app.php:46
/var/www/html/vendor/codeception/codeception/codecept:7
/var/www/html/vendor/bin/codecept:120
ERRORS!
Tests: 1, Assertions: 1, Errors: 1.
[Db] Disconnected from default
root@400b115c4f29:/var/www/html# composer show
behat/gherkin dev-master 01379b1 Gherkin DSL parser for PHP
codeception/codeception 5.0.x-dev ed4af7f BDD-style testing framework
codeception/lib-asserts 2.1.0 Assertion methods used by Codeception core and Asserts module
codeception/stub 4.1.0 Flexible Stub wrapper for PHPUnit's Mock Buildermyclabs/deep-copy 1.x-dev 928a96f Create deep copies (clones) of your objectsnikic/php-parser 4.x-dev 0ffddce A PHP parser written in PHPphar-io/manifest dev-master 36d8a21 Component for reading phar.io manifest information from a PHP Archive (PHAR)phar-io/version 3.2.1 Library for handling version information and constraintsphpunit/php-code-coverage dev-main 489650a Library that provides collection, processing, and rendering functionality for PHP code coverage information.phpunit/php-file-iterator dev-main 83f6271 FilterIterator implementation that filters files based on a list of suffixes.phpunit/php-invoker dev-main 5994330 Invoke callables with a timeoutphpunit/php-text-template dev-main 9914010 Simple template engine.phpunit/php-timer dev-main fe67739 Utility class for timingphpunit/phpunit dev-main 38f35a7 The PHP Unit Testing framework.psr/container dev-master 90db7b9 Common Container Interface (PHP FIG PSR-11)psr/event-dispatcher dev-master e275e2d Standard interfaces for event handling.psy/psysh dev-main 6c8c0fd An interactive shell for modern PHP.sebastian/cli-parser dev-main 9215d45 Library for parsing CLI optionssebastian/code-unit dev-main 362736b Collection of value objects that represent the PHP code unitssebastian/code-unit-reverse-lookup dev-main cd740da Looks up which function or method a line of code belongs tosebastian/comparator dev-main 5d09783 Provides the functionality to compare PHP values for equalitysebastian/complexity dev-main 27d3bd5 Library for calculating the complexity of PHP code unitssebastian/diff dev-main 2c9aad8 Diff implementationsebastian/environment dev-main 54b3f6e Provides functionality to handle HHVM/PHP environmentssebastian/exporter dev-main d6e9b3c Provides the functionality to export PHP variables for visualizationsebastian/global-state dev-main 3b3c08e Snapshotting of global statesebastian/lines-of-code dev-main a1e716d Library for counting the lines of code in PHP source codesebastian/object-enumerator dev-main ac568e5 Traverses array structures and object graphs to enumerate all referenced objectssebastian/object-reflector dev-main 4bf3974 Allows reflection of object attributes, including inherited and non-public onessebastian/recursion-context dev-main 8343512 Provides functionality to recursively process PHP variablessebastian/type dev-main 1a33327 Collection of value objects that represent the types of the PHP type systemsebastian/version dev-main a7fa65c Library that helps with managing the version number of Git-hosted PHP projectssymfony/console 6.3.x-dev 2655810 Eases the creation of beautiful and testable command line interfacessymfony/css-selector 6.3.x-dev efc0747 Converts CSS selectors to XPath expressionssymfony/deprecation-contracts dev-main e2d1534 A generic function and convention to trigger deprecation noticessymfony/event-dispatcher 6.3.x-dev 7fa6112 Provides tools that allow your application components to communicate with each other by dispatching events and lis...symfony/event-dispatcher-contracts dev-main 0ad3b6f Generic abstractions related to dispatching eventsymfony/finder 6.3.x-dev f5891f0 Finds files and directories via an intuitive fluent interfacesymfony/polyfill-ctype dev-main ea208ce Symfony polyfill for ctype functionssymfony/polyfill-intl-grapheme dev-main 875e90a Symfony polyfill for intl's grapheme_* functions
symfony/polyfill-intl-normalizer dev-main 8c4ad05 Symfony polyfill for intl's Normalizer class and related functionssymfony/polyfill-mbstring dev-main f9c7aff Symfony polyfill for the Mbstring extensionsymfony/service-contracts dev-main a8c9ced Generic abstractions related to writing servicessymfony/string 6.3.x-dev 599f0f0 Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unif...symfony/var-dumper 6.3.x-dev 42237ee Provides mechanisms for walking through any arbitrary PHP variablesymfony/yaml 6.3.x-dev 55071ed Loads and dumps YAML filestheseer/tokenizer 1.2.1 A small library for converting tokenized PHP source code into XML and potentially other formats
The text was updated successfully, but these errors were encountered:
cybd
pushed a commit
to cybd/module-db
that referenced
this issue
Mar 15, 2023
I'm using UUID as binary(16) in MySQL tables.
My test is failed when I'm trying to test seeInDatabase using UUID as filter criteria.
Test failed with error:
[JsonException] Malformed UTF-8 characters, possibly incorrectly encoded
Console output with
-vvv
mode:Details
composer show
)The text was updated successfully, but these errors were encountered: