Skip to content

Commit 01702e2

Browse files
committed
Add test
1 parent 686bf02 commit 01702e2

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/Unit/Connection/ImapQueryBuilderTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,3 +220,11 @@ function (ImapQueryBuilder $q) {
220220

221221
expect($builder->toImap())->toBe('FOO bar');
222222
});
223+
224+
test('converts values from utf-8 to utf-7', function () {
225+
$builder = new ImapQueryBuilder;
226+
227+
$builder->where('foo', 'Joué');
228+
229+
expect($builder->toImap())->toBe('FOO "Jou&AOk-"');
230+
});

0 commit comments

Comments
 (0)