@@ -14,7 +14,7 @@ public function testAll()
1414 ],
1515 ];
1616
17- /** @var Customers $api */
17+ /** @var Customers&\PHPUnit_Framework_MockObject_MockObject $api */
1818 $ api = $ this ->getApiMock ();
1919 $ api ->expects ($ this ->once ())
2020 ->method ('get ' )
@@ -34,11 +34,11 @@ public function testCreate()
3434 ],
3535 ];
3636
37- /** @var Customers $api */
37+ /** @var Customers&\PHPUnit_Framework_MockObject_MockObject $api */
3838 $ api = $ this ->getApiMock ();
3939 $ api ->expects ($ this ->once ())
40- ->method ('postRaw ' )
41- ->with ($ this ->equalTo ('/customers/ ' ), $ this ->equalTo (json_encode ( ['name ' => $ name ]) ))
40+ ->method ('post ' )
41+ ->with ($ this ->equalTo ('/customers/ ' ), $ this ->equalTo (['name ' => $ name ]))
4242 ->will ($ this ->returnValue ($ expected ));
4343
4444 $ this ->assertSame ($ expected , $ api ->create ($ name ));
@@ -47,7 +47,8 @@ public function testCreate()
4747 public function testRemove ()
4848 {
4949 $ expected = '' ;
50- /** @var Customers $api */
50+
51+ /** @var Customers&\PHPUnit_Framework_MockObject_MockObject $api */
5152 $ api = $ this ->getApiMock ();
5253 $ api ->expects ($ this ->once ())
5354 ->method ('delete ' )
@@ -66,7 +67,7 @@ public function testListPackages()
6667 ],
6768 ];
6869
69- /** @var Customers $api */
70+ /** @var Customers&\PHPUnit_Framework_MockObject_MockObject $api */
7071 $ api = $ this ->getApiMock ();
7172 $ api ->expects ($ this ->once ())
7273 ->method ('get ' )
@@ -87,11 +88,11 @@ public function testAddPackages()
8788
8889 $ packages = [['id ' => 1 ]];
8990
90- /** @var Customers $api */
91+ /** @var Customers&\PHPUnit_Framework_MockObject_MockObject $api */
9192 $ api = $ this ->getApiMock ();
9293 $ api ->expects ($ this ->once ())
93- ->method ('postRaw ' )
94- ->with ($ this ->equalTo ('/customers/1/packages/ ' ), json_encode ($ packages ))
94+ ->method ('post ' )
95+ ->with ($ this ->equalTo ('/customers/1/packages/ ' ), $ this -> equalTo ($ packages ))
9596 ->will ($ this ->returnValue ($ expected ));
9697
9798 $ this ->assertSame ($ expected , $ api ->addPackages (1 , $ packages ));
@@ -101,7 +102,7 @@ public function testRemovePackage()
101102 {
102103 $ expected = '' ;
103104
104- /** @var Customers $api */
105+ /** @var Customers&\PHPUnit_Framework_MockObject_MockObject $api */
105106 $ api = $ this ->getApiMock ();
106107 $ api ->expects ($ this ->once ())
107108 ->method ('delete ' )
0 commit comments