@@ -54,9 +54,10 @@ public function testLoadClassMetadata()
54
54
'noAutoMapping ' ,
55
55
])
56
56
;
57
+
57
58
$ propertyInfoStub
58
59
->method ('getTypes ' )
59
- ->will ( $ this -> onConsecutiveCalls (
60
+ ->willReturn (
60
61
[new Type (Type::BUILTIN_TYPE_STRING , true )],
61
62
[new Type (Type::BUILTIN_TYPE_STRING )],
62
63
[new Type (Type::BUILTIN_TYPE_STRING , true ), new Type (Type::BUILTIN_TYPE_INT ), new Type (Type::BUILTIN_TYPE_BOOL )],
@@ -69,11 +70,12 @@ public function testLoadClassMetadata()
69
70
[new Type (Type::BUILTIN_TYPE_ARRAY , true , null , true , null , new Type (Type::BUILTIN_TYPE_FLOAT ))],
70
71
[new Type (Type::BUILTIN_TYPE_STRING )],
71
72
[new Type (Type::BUILTIN_TYPE_STRING )]
72
- ))
73
+ )
73
74
;
75
+
74
76
$ propertyInfoStub
75
77
->method ('isWritable ' )
76
- ->will ( $ this -> onConsecutiveCalls (
78
+ ->willReturn (
77
79
true ,
78
80
true ,
79
81
true ,
@@ -86,7 +88,7 @@ public function testLoadClassMetadata()
86
88
true ,
87
89
false ,
88
90
true
89
- ))
91
+ )
90
92
;
91
93
92
94
$ propertyInfoLoader = new PropertyInfoLoader ($ propertyInfoStub , $ propertyInfoStub , $ propertyInfoStub , '{.*} ' );
@@ -222,9 +224,10 @@ public function testClassNoAutoMapping()
222
224
->method ('getProperties ' )
223
225
->willReturn (['string ' , 'autoMappingExplicitlyEnabled ' ])
224
226
;
227
+
225
228
$ propertyInfoStub
226
229
->method ('getTypes ' )
227
- ->willReturnOnConsecutiveCalls (
230
+ ->willReturn (
228
231
[new Type (Type::BUILTIN_TYPE_STRING )],
229
232
[new Type (Type::BUILTIN_TYPE_BOOL )]
230
233
);
0 commit comments