mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/10931] Also test lower case units in test_get_bytes().
PHPBB3-10931
This commit is contained in:
parent
80dfa53ee3
commit
fb279c9677
1 changed files with 2 additions and 1 deletions
|
@ -50,8 +50,9 @@ class phpbb_wrapper_phpbb_php_ini_test extends phpbb_test_case
|
|||
public function test_get_bytes()
|
||||
{
|
||||
$this->assertEquals(false, $this->php_ini->get_bytes('phpBB'));
|
||||
$this->assertEquals(false, $this->php_ini->get_bytes('k'));
|
||||
$this->assertEquals(false, $this->php_ini->get_bytes('M'));
|
||||
$this->assertEquals(32 * pow(2, 20), $this->php_ini->get_bytes('32M'));
|
||||
$this->assertEquals(32 * pow(2, 20), $this->php_ini->get_bytes('32m'));
|
||||
$this->assertEquals(8 * pow(2, 30), $this->php_ini->get_bytes('8G'));
|
||||
$this->assertEquals(1234, $this->php_ini->get_bytes('1234'));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue