@@ -56,43 +56,43 @@ protected function setUp()
56
56
public function testRefreshUrls ()
57
57
{
58
58
list ($ ret , $ err ) = $ this ->cdnManager ->refreshUrls (array ($ this ->refreshUrl ));
59
- $ this ->assertNotNull ($ ret );
60
59
$ this ->assertNull ($ err );
60
+ $ this ->assertNotNull ($ ret );
61
61
}
62
62
63
63
public function testRefreshDirs ()
64
64
{
65
65
list ($ ret , $ err ) = $ this ->cdnManager ->refreshDirs (array ($ this ->refreshDirs ));
66
- $ this ->assertNotNull ($ ret );
67
66
$ this ->assertNull ($ err );
67
+ $ this ->assertNotNull ($ ret );
68
68
}
69
69
70
70
public function testRefreshUrlsAndDirs ()
71
71
{
72
72
list ($ ret , $ err ) = $ this ->cdnManager ->refreshUrlsAndDirs (array ($ this ->refreshUrl ), array ($ this ->refreshDirs ));
73
- $ this ->assertNotNull ($ ret );
74
73
$ this ->assertNull ($ err );
74
+ $ this ->assertNotNull ($ ret );
75
75
}
76
76
77
77
public function testGetCdnRefreshList ()
78
78
{
79
79
list ($ ret , $ err ) = $ this ->cdnManager ->getCdnRefreshList (null , null , null , 'success ' );
80
- $ this ->assertNotNull ($ ret );
81
80
$ this ->assertNull ($ err );
81
+ $ this ->assertNotNull ($ ret );
82
82
}
83
83
84
84
public function testPrefetchUrls ()
85
85
{
86
86
list ($ ret , $ err ) = $ this ->cdnManager ->prefetchUrls (array ($ this ->refreshUrl ));
87
- $ this ->assertNotNull ($ ret );
88
87
$ this ->assertNull ($ err );
88
+ $ this ->assertNotNull ($ ret );
89
89
}
90
90
91
91
public function testGetCdnPrefetchList ()
92
92
{
93
93
list ($ ret , $ err ) = $ this ->cdnManager ->getCdnPrefetchList (null , null , 'success ' );
94
- $ this ->assertNotNull ($ ret );
95
94
$ this ->assertNull ($ err );
95
+ $ this ->assertNotNull ($ ret );
96
96
}
97
97
98
98
public function testGetBandwidthData ()
@@ -103,8 +103,8 @@ public function testGetBandwidthData()
103
103
$ this ->testEndDate ,
104
104
$ this ->testGranularity
105
105
);
106
- $ this ->assertNotNull ($ ret );
107
106
$ this ->assertNull ($ err );
107
+ $ this ->assertNotNull ($ ret );
108
108
}
109
109
110
110
public function testGetFluxData ()
@@ -115,31 +115,31 @@ public function testGetFluxData()
115
115
$ this ->testEndDate ,
116
116
$ this ->testGranularity
117
117
);
118
- $ this ->assertNotNull ($ ret );
119
118
$ this ->assertNull ($ err );
119
+ $ this ->assertNotNull ($ ret );
120
120
}
121
121
122
122
public function testGetCdnLogList ()
123
123
{
124
124
list ($ ret , $ err ) = $ this ->cdnManager ->getCdnLogList (array ('fake.qiniu.com ' ), $ this ->testLogDate );
125
- $ this ->assertNull ($ ret );
126
125
$ this ->assertNotNull ($ err );
126
+ $ this ->assertNull ($ ret );
127
127
}
128
128
129
129
public function testCreateTimestampAntiLeechUrl ()
130
130
{
131
131
$ signUrl = $ this ->cdnManager ->createTimestampAntiLeechUrl ($ this ->refreshUrl , $ this ->encryptKey , 3600 );
132
132
$ response = Client::get ($ signUrl );
133
- $ this ->assertEquals ($ response ->statusCode , 200 );
134
133
$ this ->assertNull ($ response ->error );
134
+ $ this ->assertEquals ($ response ->statusCode , 200 );
135
135
136
136
$ signUrl = $ this ->cdnManager ->createTimestampAntiLeechUrl (
137
137
$ this ->refreshUrl . '?qiniu ' ,
138
138
$ this ->encryptKey ,
139
139
3600
140
140
);
141
141
$ response = Client::get ($ signUrl );
142
- $ this ->assertEquals ($ response ->statusCode , 200 );
143
142
$ this ->assertNull ($ response ->error );
143
+ $ this ->assertEquals ($ response ->statusCode , 200 );
144
144
}
145
145
}
0 commit comments