From 03053cf61a0c4ba1c0f68b62919353df89a32910 Mon Sep 17 00:00:00 2001 From: Awilum Date: Mon, 27 Sep 2021 17:57:43 +0300 Subject: [PATCH] feat(tests): update tests for serializers --- tests/src/flextype/core/Serializers/PhpArrayTest.php | 2 +- tests/src/flextype/core/Serializers/PhpCodeTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/src/flextype/core/Serializers/PhpArrayTest.php b/tests/src/flextype/core/Serializers/PhpArrayTest.php index 1e4162b6..8242cff8 100644 --- a/tests/src/flextype/core/Serializers/PhpArrayTest.php +++ b/tests/src/flextype/core/Serializers/PhpArrayTest.php @@ -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 () { diff --git a/tests/src/flextype/core/Serializers/PhpCodeTest.php b/tests/src/flextype/core/Serializers/PhpCodeTest.php index fe4b09b5..3ba5cbdb 100644 --- a/tests/src/flextype/core/Serializers/PhpCodeTest.php +++ b/tests/src/flextype/core/Serializers/PhpCodeTest.php @@ -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 () {