1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-08 06:06:45 +02:00

feat(tests): update tests for serializers

This commit is contained in:
Awilum
2021-09-27 17:57:43 +03:00
parent e867fc113d
commit 03053cf61a
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
declare(strict_types=1);
test('encode', function () {
$this->assertEquals(67, strings(serializers()->phparray()->encode(['title' => 'Foo', 'content' => 'Bar']))->length());
$this->assertEquals(65, strings(serializers()->phparray()->encode(['title' => 'Foo', 'content' => 'Bar']))->length());
});
test('decode', function () {

View File

@@ -3,7 +3,7 @@
declare(strict_types=1);
test('encode', function () {
$this->assertEquals(35, strings(serializers()->phpcode()->encode(['flextype' => registry()->get("flextype.manifest.version")]))->length());
$this->assertEquals(31, strings(serializers()->phpcode()->encode(['flextype' => registry()->get("flextype.manifest.version")]))->length());
});
test('decode', function () {