@@ -56,43 +56,43 @@ protected function setUp()
5656 public function testRefreshUrls ()
5757 {
5858 list ($ ret , $ err ) = $ this ->cdnManager ->refreshUrls (array ($ this ->refreshUrl ));
59- $ this ->assertNotNull ($ ret );
6059 $ this ->assertNull ($ err );
60+ $ this ->assertNotNull ($ ret );
6161 }
6262
6363 public function testRefreshDirs ()
6464 {
6565 list ($ ret , $ err ) = $ this ->cdnManager ->refreshDirs (array ($ this ->refreshDirs ));
66- $ this ->assertNotNull ($ ret );
6766 $ this ->assertNull ($ err );
67+ $ this ->assertNotNull ($ ret );
6868 }
6969
7070 public function testRefreshUrlsAndDirs ()
7171 {
7272 list ($ ret , $ err ) = $ this ->cdnManager ->refreshUrlsAndDirs (array ($ this ->refreshUrl ), array ($ this ->refreshDirs ));
73- $ this ->assertNotNull ($ ret );
7473 $ this ->assertNull ($ err );
74+ $ this ->assertNotNull ($ ret );
7575 }
7676
7777 public function testGetCdnRefreshList ()
7878 {
7979 list ($ ret , $ err ) = $ this ->cdnManager ->getCdnRefreshList (null , null , null , 'success ' );
80- $ this ->assertNotNull ($ ret );
8180 $ this ->assertNull ($ err );
81+ $ this ->assertNotNull ($ ret );
8282 }
8383
8484 public function testPrefetchUrls ()
8585 {
8686 list ($ ret , $ err ) = $ this ->cdnManager ->prefetchUrls (array ($ this ->refreshUrl ));
87- $ this ->assertNotNull ($ ret );
8887 $ this ->assertNull ($ err );
88+ $ this ->assertNotNull ($ ret );
8989 }
9090
9191 public function testGetCdnPrefetchList ()
9292 {
9393 list ($ ret , $ err ) = $ this ->cdnManager ->getCdnPrefetchList (null , null , 'success ' );
94- $ this ->assertNotNull ($ ret );
9594 $ this ->assertNull ($ err );
95+ $ this ->assertNotNull ($ ret );
9696 }
9797
9898 public function testGetBandwidthData ()
@@ -103,8 +103,8 @@ public function testGetBandwidthData()
103103 $ this ->testEndDate ,
104104 $ this ->testGranularity
105105 );
106- $ this ->assertNotNull ($ ret );
107106 $ this ->assertNull ($ err );
107+ $ this ->assertNotNull ($ ret );
108108 }
109109
110110 public function testGetFluxData ()
@@ -115,31 +115,31 @@ public function testGetFluxData()
115115 $ this ->testEndDate ,
116116 $ this ->testGranularity
117117 );
118- $ this ->assertNotNull ($ ret );
119118 $ this ->assertNull ($ err );
119+ $ this ->assertNotNull ($ ret );
120120 }
121121
122122 public function testGetCdnLogList ()
123123 {
124124 list ($ ret , $ err ) = $ this ->cdnManager ->getCdnLogList (array ('fake.qiniu.com ' ), $ this ->testLogDate );
125- $ this ->assertNull ($ ret );
126125 $ this ->assertNotNull ($ err );
126+ $ this ->assertNull ($ ret );
127127 }
128128
129129 public function testCreateTimestampAntiLeechUrl ()
130130 {
131131 $ signUrl = $ this ->cdnManager ->createTimestampAntiLeechUrl ($ this ->refreshUrl , $ this ->encryptKey , 3600 );
132132 $ response = Client::get ($ signUrl );
133- $ this ->assertEquals ($ response ->statusCode , 200 );
134133 $ this ->assertNull ($ response ->error );
134+ $ this ->assertEquals ($ response ->statusCode , 200 );
135135
136136 $ signUrl = $ this ->cdnManager ->createTimestampAntiLeechUrl (
137137 $ this ->refreshUrl . '?qiniu ' ,
138138 $ this ->encryptKey ,
139139 3600
140140 );
141141 $ response = Client::get ($ signUrl );
142- $ this ->assertEquals ($ response ->statusCode , 200 );
143142 $ this ->assertNull ($ response ->error );
143+ $ this ->assertEquals ($ response ->statusCode , 200 );
144144 }
145145}
0 commit comments