aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2012-06-11 14:31:09 +0200
committerAndreas Fischer <bantu@phpbb.com>2012-06-11 14:31:09 +0200
commitfb279c9677641db5efa38f24c51db93df004cb46 (patch)
tree5cac96b525b34f53d6c3d23fce00a2febd0b80ed /tests/wrapper/phpbb_php_ini_test.php
parent[ticket/10931] Correctly use GNU GPL version 2. (diff)
downloadphpbb-fb279c9677641db5efa38f24c51db93df004cb46.tar.gz
phpbb-fb279c9677641db5efa38f24c51db93df004cb46.tar.bz2
phpbb-fb279c9677641db5efa38f24c51db93df004cb46.zip
[ticket/10931] Also test lower case units in test_get_bytes().
PHPBB3-10931
Diffstat (limited to 'tests/wrapper/phpbb_php_ini_test.php')
-rw-r--r--tests/wrapper/phpbb_php_ini_test.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/wrapper/phpbb_php_ini_test.php b/tests/wrapper/phpbb_php_ini_test.php
index cdfee802f2..cbb05e98e9 100644
--- a/tests/wrapper/phpbb_php_ini_test.php
+++ b/tests/wrapper/phpbb_php_ini_test.php
@@ -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'));
}