Skip to content

Commit

Permalink
Add test with UTF-8 multibyte symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Apr 9, 2024
1 parent 5885a6f commit fe50046
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/Db/Syntax/SqlParserTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

declare(strict_types=1);

namespace Yiisoft\Db\Tests\Db\Syntax;

use Yiisoft\Db\Tests\AbstractSqlParserTest;
use Yiisoft\Db\Tests\Support\Stub\SqlParser;

class SqlParserTest extends AbstractSqlParserTest
{
protected function createSqlParser(string $sql): SqlParser
{
return new SqlParser($sql);
}
}
5 changes: 5 additions & 0 deletions tests/Provider/SqlParserProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ public static function getNextPlaceholder(): array
':name',
65,
],
[
"SELECT * FROM {{customer}} WHERE \"Ģ:name\" = '😀 ȧ Привет 中文 :label' AND age = :age",
':age',
92,
],
];
}

Expand Down

0 comments on commit fe50046

Please sign in to comment.