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:
@@ -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 () {
|
||||
|
@@ -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 () {
|
||||
|
Reference in New Issue
Block a user