@@ -23,6 +23,24 @@ public function testGetQiniu()
2323 $ this ->assertNotNull ($ response ->error );
2424 }
2525
26+ public function testDelete ()
27+ {
28+ $ response = Client::delete ('uc.qbox.me/bucketTagging ' , array ());
29+ $ this ->assertEquals ($ response ->statusCode , 401 );
30+ $ this ->assertNotNull ($ response ->body );
31+ $ this ->assertNotNull ($ response ->error );
32+ }
33+
34+ public function testDeleteQiniu ()
35+ {
36+ $ response = Client::delete ('uc.qbox.me/bucketTagging ' , array ());
37+ $ this ->assertEquals (401 , $ response ->statusCode );
38+ $ this ->assertNotNull ($ response ->body );
39+ $ this ->assertNotNull ($ response ->xReqId ());
40+ $ this ->assertNotNull ($ response ->xLog ());
41+ $ this ->assertNotNull ($ response ->error );
42+ }
43+
2644 public function testPost ()
2745 {
2846 $ response = Client::post ('qiniu.com ' , null );
@@ -40,4 +58,22 @@ public function testPostQiniu()
4058 $ this ->assertNotNull ($ response ->xLog ());
4159 $ this ->assertNotNull ($ response ->error );
4260 }
61+
62+ public function testPut ()
63+ {
64+ $ response = Client::PUT ('uc.qbox.me/bucketTagging ' , null );
65+ $ this ->assertEquals ($ response ->statusCode , 401 );
66+ $ this ->assertNotNull ($ response ->body );
67+ $ this ->assertNotNull ($ response ->error );
68+ }
69+
70+ public function testPutQiniu ()
71+ {
72+ $ response = Client::put ('uc.qbox.me/bucketTagging ' , null );
73+ $ this ->assertEquals (401 , $ response ->statusCode );
74+ $ this ->assertNotNull ($ response ->body );
75+ $ this ->assertNotNull ($ response ->xReqId ());
76+ $ this ->assertNotNull ($ response ->xLog ());
77+ $ this ->assertNotNull ($ response ->error );
78+ }
4379}
0 commit comments