aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wrapper
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
parent80dfa53ee3f04dfdba11efe9eb3f49d739bb602b (diff)
downloadforums-fb279c9677641db5efa38f24c51db93df004cb46.tar
forums-fb279c9677641db5efa38f24c51db93df004cb46.tar.gz
forums-fb279c9677641db5efa38f24c51db93df004cb46.tar.bz2
forums-fb279c9677641db5efa38f24c51db93df004cb46.tar.xz
forums-fb279c9677641db5efa38f24c51db93df004cb46.zip
[ticket/10931] Also test lower case units in test_get_bytes().
PHPBB3-10931
Diffstat (limited to 'tests/wrapper')
-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'));
}