| @@ 134-143 (lines=10) @@ | ||
| 131 | ||
| 132 | /** |
|
| 133 | */ |
|
| 134 | public function testHas() |
|
| 135 | { |
|
| 136 | $name = 'test-has.txt'; |
|
| 137 | self::$upyun->write($name, 'test file content 4'); |
|
| 138 | $this->assertEquals(self::$upyun->has($name), true); |
|
| 139 | sleep(5); |
|
| 140 | self::$upyun->delete($name); |
|
| 141 | sleep(5); |
|
| 142 | $this->assertEquals(self::$upyun->has($name), false); |
|
| 143 | } |
|
| 144 | ||
| 145 | /** |
|
| 146 | * @depends testWriteString |
|
| @@ 224-233 (lines=10) @@ | ||
| 221 | /** |
|
| 222 | * @depends testWriteString |
|
| 223 | */ |
|
| 224 | public function testMove() |
|
| 225 | { |
|
| 226 | $source = 'test-move.txt'; |
|
| 227 | $target = 'test-move-target.txt'; |
|
| 228 | self::$upyun->write($source, 'test file content 7'); |
|
| 229 | sleep(5); |
|
| 230 | self::$upyun->move($source, $target); |
|
| 231 | $this->assertEquals(self::$upyun->has($source), false); |
|
| 232 | $this->assertEquals(self::$upyun->has($target), true); |
|
| 233 | } |
|
| 234 | ||
| 235 | public function testPurge() |
|
| 236 | { |
|