We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d2f0c8 commit 9f91848Copy full SHA for 9f91848
tests/Qiniu/Tests/ConfigTest.php
@@ -76,5 +76,19 @@ public function testSetUcHost()
76
$conf->setUcHost("uc.example.com");
77
$this->assertEquals("https://uc.example.com", $conf->getUcHost());
78
}
79
+
80
+ public function testGetRegionWithBackupDomains()
81
+ {
82
+ $conf = new Config();
83
+ $conf->setUcHost(
84
+ "fake-uc.phpsdk.qiniu.com",
85
+ array(
86
+ "unavailable-uc.phpsdk.qiniu.com",
87
+ "uc.qbox.me" // real uc
88
+ )
89
+ );
90
+ list(, $err) = $conf->getRsHostV2($this->accessKey, $this->bucketName);
91
+ $this->assertNull($err);
92
+ }
93
94
0 commit comments