@@ -22,7 +22,7 @@ public function testAll()
2222 $ api ->expects ($ this ->once ())
2323 ->method ('get ' )
2424 ->with ($ this ->equalTo ('/projects/ ' ))
25- ->will ( $ this -> returnValue ( $ expected) );
25+ ->willReturn ( $ expected );
2626
2727 $ this ->assertSame ($ expected , $ api ->all ());
2828 }
@@ -38,7 +38,7 @@ public function testShow()
3838 $ api ->expects ($ this ->once ())
3939 ->method ('get ' )
4040 ->with ($ this ->equalTo ('/projects/project/ ' ))
41- ->will ( $ this -> returnValue ( $ expected) );
41+ ->willReturn ( $ expected );
4242
4343 $ this ->assertSame ($ expected , $ api ->show ($ projectName ));
4444 }
@@ -52,7 +52,7 @@ public function testCreate()
5252 $ api ->expects ($ this ->once ())
5353 ->method ('post ' )
5454 ->with ($ this ->equalTo ('/projects/ ' ), $ this ->equalTo (['name ' => 'ACME Websites ' ]))
55- ->will ( $ this -> returnValue ( $ expected) );
55+ ->willReturn ( $ expected );
5656
5757 $ this ->assertSame ($ expected , $ api ->create ('ACME Websites ' ));
5858 }
@@ -66,7 +66,7 @@ public function testRemove()
6666 $ api ->expects ($ this ->once ())
6767 ->method ('delete ' )
6868 ->with ($ this ->equalTo ('/projects/project/ ' ))
69- ->will ( $ this -> returnValue ( $ expected) );
69+ ->willReturn ( $ expected );
7070
7171 $ this ->assertSame ($ expected , $ api ->remove ('project ' ));
7272 }
@@ -88,7 +88,7 @@ public function testListTeams()
8888 $ api ->expects ($ this ->once ())
8989 ->method ('get ' )
9090 ->with ($ this ->equalTo ('/projects/project/teams/ ' ))
91- ->will ( $ this -> returnValue ( $ expected) );
91+ ->willReturn ( $ expected );
9292
9393 $ this ->assertSame ($ expected , $ api ->listTeams ('project ' ));
9494 }
@@ -112,7 +112,7 @@ public function testAddOrEditTeam()
112112 $ api ->expects ($ this ->once ())
113113 ->method ('post ' )
114114 ->with ($ this ->equalTo ('/projects/project/teams/ ' ), $ this ->equalTo ($ teams ))
115- ->will ( $ this -> returnValue ( $ expected) );
115+ ->willReturn ( $ expected );
116116
117117 $ this ->assertSame ($ expected , $ api ->addOrEditTeams ('project ' , $ teams ));
118118 }
@@ -126,7 +126,7 @@ public function testRemoveTeam()
126126 $ api ->expects ($ this ->once ())
127127 ->method ('delete ' )
128128 ->with ($ this ->equalTo ('/projects/project/teams/42/ ' ))
129- ->will ( $ this -> returnValue ( $ expected) );
129+ ->willReturn ( $ expected );
130130
131131 $ this ->assertSame ($ expected , $ api ->removeTeam ('project ' , 42 ));
132132 }
@@ -147,7 +147,7 @@ public function testListPackages()
147147 $ api ->expects ($ this ->once ())
148148 ->method ('get ' )
149149 ->with ($ this ->equalTo ('/projects/project/packages/ ' ))
150- ->will ( $ this -> returnValue ( $ expected) );
150+ ->willReturn ( $ expected );
151151
152152 $ this ->assertSame ($ expected , $ api ->listPackages ('project ' ));
153153 }
@@ -170,7 +170,7 @@ public function testListTokens()
170170 $ api ->expects ($ this ->once ())
171171 ->method ('get ' )
172172 ->with ($ this ->equalTo ('/projects/project/tokens/ ' ))
173- ->will ( $ this -> returnValue ( $ expected) );
173+ ->willReturn ( $ expected );
174174
175175 $ this ->assertSame ($ expected , $ api ->listTokens ('project ' ));
176176 }
@@ -194,7 +194,7 @@ public function testCreateToken()
194194 'description ' => 'Project Token ' ,
195195 'access ' => 'read ' ,
196196 ]))
197- ->will ( $ this -> returnValue ( $ expected) );
197+ ->willReturn ( $ expected );
198198
199199 $ this ->assertSame ($ expected , $ api ->createToken ('project ' , [
200200 'description ' => 'Project Token ' ,
@@ -211,7 +211,7 @@ public function testRemoveToken()
211211 $ api ->expects ($ this ->once ())
212212 ->method ('delete ' )
213213 ->with ($ this ->equalTo ('/projects/project/tokens/1/ ' ))
214- ->will ( $ this -> returnValue ( $ expected) );
214+ ->willReturn ( $ expected );
215215
216216 $ this ->assertSame ($ expected , $ api ->removeToken ('project ' , 1 ));
217217 }
@@ -225,7 +225,7 @@ public function testRegenerateToken()
225225 $ api ->expects ($ this ->once ())
226226 ->method ('post ' )
227227 ->with ($ this ->equalTo ('/projects/project/tokens/1/regenerate ' ), $ this ->equalTo (['IConfirmOldTokenWillStopWorkingImmediately ' => true ]))
228- ->will ( $ this -> returnValue ( $ expected) );
228+ ->willReturn ( $ expected );
229229
230230 $ this ->assertSame ($ expected , $ api ->regenerateToken ('project ' , 1 , ['IConfirmOldTokenWillStopWorkingImmediately ' => true ]));
231231 }
0 commit comments