Skip to content

Commit b0318af

Browse files
committed
Add complex test
1 parent 8a90735 commit b0318af

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/EProcess/Behaviour/UniversalSerializerTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@ public function should_serialize_object()
3939
$this->assertData(new Transaction('EUR', 1235));
4040
}
4141

42+
/**
43+
* @test
44+
*/
45+
public function should_serialize_all()
46+
{
47+
$this->assertData([
48+
'abcde', // scalar
49+
[1 => 'ok'], // array,
50+
[2 => ['ok', new Transaction('USD', 555)]] // object
51+
]);
52+
}
53+
4254
private function assertData($data)
4355
{
4456
$serializer = new SomeSerializer();

0 commit comments

Comments
 (0)