| @@ 193-200 (lines=8) @@ | ||
| 190 | /** |
|
| 191 | * @depends testCreateDir |
|
| 192 | */ |
|
| 193 | public function testDeleteDir() |
|
| 194 | { |
|
| 195 | $result = self::$upyun->createDir('/test-delete-dir'); |
|
| 196 | $this->assertEquals($result, true); |
|
| 197 | sleep(5); |
|
| 198 | $result = self::$upyun->deleteDir('/test-delete-dir'); |
|
| 199 | $this->assertEquals($result, true); |
|
| 200 | } |
|
| 201 | ||
| 202 | public function testUsage() |
|
| 203 | { |
|
| @@ 211-219 (lines=9) @@ | ||
| 208 | /** |
|
| 209 | * @depends testWriteString |
|
| 210 | */ |
|
| 211 | public function testCopy() |
|
| 212 | { |
|
| 213 | $source = 'test-copy.txt'; |
|
| 214 | $target = 'test-copy-target.txt'; |
|
| 215 | self::$upyun->write($source, 'test file content 6'); |
|
| 216 | sleep(5); |
|
| 217 | self::$upyun->copy($source, $target); |
|
| 218 | $this->assertEquals(self::$upyun->has($target), true); |
|
| 219 | } |
|
| 220 | ||
| 221 | /** |
|
| 222 | * @depends testWriteString |
|