File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
src/Symfony/Component/Validator Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ public function __sleep()
76
76
'property ' ,
77
77
'cascaded ' ,
78
78
'collectionCascaded ' ,
79
+ 'collectionCascadedDeeply ' ,
79
80
));
80
81
}
81
82
Original file line number Diff line number Diff line change @@ -72,7 +72,16 @@ public function testSerialize()
72
72
73
73
public function testSerializeCollectionCascaded ()
74
74
{
75
- $ this ->metadata ->addConstraint (new Valid (array ('traverse ' => true )));
75
+ $ this ->metadata ->addConstraint (new Valid (array ('traverse ' => true , 'deep ' => false )));
76
+
77
+ $ metadata = unserialize (serialize ($ this ->metadata ));
78
+
79
+ $ this ->assertEquals ($ this ->metadata , $ metadata );
80
+ }
81
+
82
+ public function testSerializeCollectionCascadedDeeply ()
83
+ {
84
+ $ this ->metadata ->addConstraint (new Valid (array ('traverse ' => true , 'deep ' => true )));
76
85
77
86
$ metadata = unserialize (serialize ($ this ->metadata ));
78
87
You can’t perform that action at this time.
0 commit comments