@@ -61,7 +61,7 @@ public function testAttributes()
61
61
groups: ['Default ' , 'WhenTestWithAttributes ' ],
62
62
),
63
63
], $ classConstraint ->constraints );
64
- self ::assertEmpty ( $ classConstraint ->otherwise );
64
+ self ::assertSame ([], $ classConstraint ->otherwise );
65
65
66
66
[$ fooConstraint ] = $ metadata ->properties ['foo ' ]->getConstraints ();
67
67
@@ -71,7 +71,7 @@ public function testAttributes()
71
71
new NotNull (groups: ['Default ' , 'WhenTestWithAttributes ' ]),
72
72
new NotBlank (groups: ['Default ' , 'WhenTestWithAttributes ' ]),
73
73
], $ fooConstraint ->constraints );
74
- self ::assertEmpty ( $ fooConstraint ->otherwise );
74
+ self ::assertSame ([], $ fooConstraint ->otherwise );
75
75
self ::assertSame (['Default ' , 'WhenTestWithAttributes ' ], $ fooConstraint ->groups );
76
76
77
77
[$ barConstraint ] = $ metadata ->properties ['bar ' ]->getConstraints ();
@@ -82,15 +82,15 @@ public function testAttributes()
82
82
new NotNull (groups: ['foo ' ]),
83
83
new NotBlank (groups: ['foo ' ]),
84
84
], $ barConstraint ->constraints );
85
- self ::assertEmpty ( $ barConstraint ->otherwise );
85
+ self ::assertSame ([], $ barConstraint ->otherwise );
86
86
self ::assertSame (['foo ' ], $ barConstraint ->groups );
87
87
88
88
[$ quxConstraint ] = $ metadata ->properties ['qux ' ]->getConstraints ();
89
89
90
90
self ::assertInstanceOf (When::class, $ quxConstraint );
91
91
self ::assertSame ('true ' , $ quxConstraint ->expression );
92
92
self ::assertEquals ([new NotNull (groups: ['foo ' ])], $ quxConstraint ->constraints );
93
- self ::assertEmpty ( $ quxConstraint ->otherwise );
93
+ self ::assertSame ([], $ quxConstraint ->otherwise );
94
94
self ::assertSame (['foo ' ], $ quxConstraint ->groups );
95
95
96
96
[$ bazConstraint ] = $ metadata ->getters ['baz ' ]->getConstraints ();
@@ -101,7 +101,7 @@ public function testAttributes()
101
101
new NotNull (groups: ['Default ' , 'WhenTestWithAttributes ' ]),
102
102
new NotBlank (groups: ['Default ' , 'WhenTestWithAttributes ' ]),
103
103
], $ bazConstraint ->constraints );
104
- self ::assertEmpty ( $ bazConstraint ->otherwise );
104
+ self ::assertSame ([], $ bazConstraint ->otherwise );
105
105
self ::assertSame (['Default ' , 'WhenTestWithAttributes ' ], $ bazConstraint ->groups );
106
106
107
107
[$ quuxConstraint ] = $ metadata ->properties ['quux ' ]->getConstraints ();
@@ -135,7 +135,7 @@ public function testAttributesWithClosure()
135
135
groups: ['Default ' , 'WhenTestWithClosure ' ],
136
136
),
137
137
], $ classConstraint ->constraints );
138
- self ::assertEmpty ( $ classConstraint ->otherwise );
138
+ self ::assertSame ([], $ classConstraint ->otherwise );
139
139
140
140
[$ fooConstraint ] = $ metadata ->properties ['foo ' ]->getConstraints ();
141
141
@@ -145,7 +145,7 @@ public function testAttributesWithClosure()
145
145
new NotNull (groups: ['Default ' , 'WhenTestWithClosure ' ]),
146
146
new NotBlank (groups: ['Default ' , 'WhenTestWithClosure ' ]),
147
147
], $ fooConstraint ->constraints );
148
- self ::assertEmpty ( $ fooConstraint ->otherwise );
148
+ self ::assertSame ([], $ fooConstraint ->otherwise );
149
149
self ::assertSame (['Default ' , 'WhenTestWithClosure ' ], $ fooConstraint ->groups );
150
150
}
151
151
}
0 commit comments