diff --git a/tests/src/flextype/core/Serializers/PhpArrayTest.php b/tests/src/flextype/core/Serializers/PhpArrayTest.php index 8242cff8..eccb7513 100644 --- a/tests/src/flextype/core/Serializers/PhpArrayTest.php +++ b/tests/src/flextype/core/Serializers/PhpArrayTest.php @@ -4,6 +4,9 @@ declare(strict_types=1); test('encode', function () { $this->assertEquals(65, strings(serializers()->phparray()->encode(['title' => 'Foo', 'content' => 'Bar']))->length()); + + registry()->set('flextype.settings.serializers.phparray.encode.wrap', false); + $this->assertEquals(49, 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 3ba5cbdb..275123fb 100644 --- a/tests/src/flextype/core/Serializers/PhpCodeTest.php +++ b/tests/src/flextype/core/Serializers/PhpCodeTest.php @@ -4,6 +4,9 @@ declare(strict_types=1); test('encode', function () { $this->assertEquals(31, strings(serializers()->phpcode()->encode(['flextype' => registry()->get("flextype.manifest.version")]))->length()); + + registry()->set('flextype.settings.serializers.phpcode.encode.wrap', true); + $this->assertEquals(47, strings(serializers()->phpcode()->encode(['flextype' => registry()->get("flextype.manifest.version")]))->length()); }); test('decode', function () {