Skip to content

Commit 12c451e

Browse files
committed
x
1 parent 242d448 commit 12c451e

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

tests/IoTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function setUp()
1515

1616
public function testPutFile()
1717
{
18-
$key = 'testPutFile' . $tid;
18+
$key = 'testPutFile' . getTid();
1919
$err = Qiniu_RS_Delete($this->client, $this->bucket, $key);
2020

2121
$putPolicy = new Qiniu_RS_PutPolicy($this->bucket);
@@ -37,7 +37,7 @@ public function testPutFile()
3737

3838
public function testPut()
3939
{
40-
$key = 'testPut' . $tid;
40+
$key = 'testPut' . getTid();
4141
$err = Qiniu_RS_Delete($this->client, $this->bucket, $key);
4242

4343
$putPolicy = new Qiniu_RS_PutPolicy($this->bucket);

tests/RsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ public function testStat()
2828

2929
public function testDeleteMoveCopy()
3030
{
31-
$key2 = 'testOp2' . $tid;
32-
$key3 = 'testOp3' . $tid;
31+
$key2 = 'testOp2' . getTid();
32+
$key3 = 'testOp3' . getTid();
3333
Qiniu_RS_Delete($this->client, $this->bucket, $key2);
3434
Qiniu_RS_Delete($this->client, $this->bucket, $key3);
3535

tests/RsUtilsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function setUp()
1515

1616
public function testPutFile()
1717
{
18-
$key = 'testPutFile' . $tid;
18+
$key = 'testPutFile' . getTid();
1919
$err = Qiniu_RS_Delete($this->client, $this->bucket, $key);
2020

2121
$putExtra = new Qiniu_PutExtra();
@@ -35,7 +35,7 @@ public function testPutFile()
3535

3636
public function testPut()
3737
{
38-
$key = 'testPut' . $tid;
38+
$key = 'testPut' . getTid();
3939
$err = Qiniu_RS_Delete($this->client, $this->bucket, $key);
4040

4141
list($ret, $err) = Qiniu_RS_Put($this->client, $this->bucket, $key, "hello world!", null);

tests/bootstrap.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@
1515
$tid = strstr($tid, ".");
1616
}
1717

18+
function getTid() {
19+
return $tid;
20+
}
21+

0 commit comments

Comments
 (0)