mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-03-22 13:10:41 +08:00
address Scrutinizer issues
This commit is contained in:
parent
bbcf57de0e
commit
fa4fe2852d
|
@ -176,7 +176,7 @@ class GoogleCloudStorageTest extends PHPUnit_Framework_TestCase
|
||||||
$this->assertEquals($storedExpired, $this->_model->getValue('traffic_limiter', $client));
|
$this->assertEquals($storedExpired, $this->_model->getValue('traffic_limiter', $client));
|
||||||
|
|
||||||
$this->_model->purgeValues('traffic_limiter', time() + 60);
|
$this->_model->purgeValues('traffic_limiter', time() + 60);
|
||||||
$this->assertFalse($this->_model->getValue('traffic_limiter', $client));
|
$this->assertEquals('', $this->_model->getValue('traffic_limiter', $client));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testKeyValuePurgeTrafficLimiterWithKey()
|
public function testKeyValuePurgeTrafficLimiterWithKey()
|
||||||
|
@ -192,6 +192,6 @@ class GoogleCloudStorageTest extends PHPUnit_Framework_TestCase
|
||||||
$this->assertEquals($storedExpired, $this->_model->getValue('traffic_limiter', $client));
|
$this->assertEquals($storedExpired, $this->_model->getValue('traffic_limiter', $client));
|
||||||
|
|
||||||
$this->_model->purgeValues('traffic_limiter', time() + 60);
|
$this->_model->purgeValues('traffic_limiter', time() + 60);
|
||||||
$this->assertFalse($this->_model->getValue('traffic_limiter', $client));
|
$this->assertEquals('', $this->_model->getValue('traffic_limiter', $client));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user