This repository was archived by the owner on Jan 29, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +7
-10
lines changed Expand file tree Collapse file tree 4 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public function testSetNameOnGenericIsCalledOnce()
56
56
$ mockProto = $ this ->getMockBuilder (PrototypeGenericClass::class)
57
57
->setMethods (['setName ' ])
58
58
->getMock ();
59
- $ mockProto ->expects ($ this ->once ())->method ('setName ' )->will ( $ this -> returnValue ( 'notexist ' ) );
59
+ $ mockProto ->expects ($ this ->once ())->method ('setName ' )->willReturn ( 'notexist ' );
60
60
$ this ->prototypeFactory ->setGenericPrototype ($ mockProto );
61
61
$ this ->prototypeFactory ->getClonedPrototype ('notexist ' );
62
62
}
Original file line number Diff line number Diff line change @@ -172,9 +172,8 @@ public function testGetAnnotationsWithNoNameInformations()
172
172
173
173
$ reflectionClass ->setFileScanner ($ fileScanner );
174
174
175
- $ fileScanner ->expects ($ this ->any ())
176
- ->method ('getClassNameInformation ' )
177
- ->will ($ this ->returnValue (false ));
175
+ $ fileScanner ->method ('getClassNameInformation ' )
176
+ ->willReturn (false );
178
177
179
178
self ::assertFalse ($ reflectionClass ->getAnnotations ($ annotationManager ));
180
179
}
Original file line number Diff line number Diff line change @@ -312,9 +312,8 @@ public function testGetAnnotationsWithNoNameInformations()
312
312
313
313
$ reflectionMethod ->setFileScanner ($ fileScanner );
314
314
315
- $ fileScanner ->expects ($ this ->any ())
316
- ->method ('getClassNameInformation ' )
317
- ->will ($ this ->returnValue (false ));
315
+ $ fileScanner ->method ('getClassNameInformation ' )
316
+ ->willReturn (false );
318
317
319
318
self ::assertFalse ($ reflectionMethod ->getAnnotations ($ annotationManager ));
320
319
}
Original file line number Diff line number Diff line change @@ -73,9 +73,8 @@ public function testGetAnnotationsWithNoNameInformations()
73
73
74
74
$ reflectionProperty ->setFileScanner ($ fileScanner );
75
75
76
- $ fileScanner ->expects ($ this ->any ())
77
- ->method ('getClassNameInformation ' )
78
- ->will ($ this ->returnValue (false ));
76
+ $ fileScanner ->method ('getClassNameInformation ' )
77
+ ->willReturn (false );
79
78
80
79
self ::assertFalse ($ reflectionProperty ->getAnnotations ($ annotationManager ));
81
80
}
You can’t perform that action at this time.
0 commit comments