diff options
author | Marc Alexander <admin@m-a-styles.de> | 2015-09-01 10:58:35 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2015-09-09 08:29:07 +0200 |
commit | c3ccd423d2a6f3aab1183b22177df6f605f33371 (patch) | |
tree | 111f84e7efe463bd3d8ed63cda36cf71f7c7cafd /tests/wrapper | |
parent | b29b62debe4077ec688ebee9e9363db2c8614dd5 (diff) | |
download | forums-c3ccd423d2a6f3aab1183b22177df6f605f33371.tar forums-c3ccd423d2a6f3aab1183b22177df6f605f33371.tar.gz forums-c3ccd423d2a6f3aab1183b22177df6f605f33371.tar.bz2 forums-c3ccd423d2a6f3aab1183b22177df6f605f33371.tar.xz forums-c3ccd423d2a6f3aab1183b22177df6f605f33371.zip |
[ticket/13904] Add back tests for retrieving floats
PHPBB3-13904
Diffstat (limited to 'tests/wrapper')
-rw-r--r-- | tests/wrapper/phpbb_php_ini_test.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/wrapper/phpbb_php_ini_test.php b/tests/wrapper/phpbb_php_ini_test.php index 8ef63757a5..9f46a78d5b 100644 --- a/tests/wrapper/phpbb_php_ini_test.php +++ b/tests/wrapper/phpbb_php_ini_test.php @@ -49,6 +49,13 @@ class phpbb_wrapper_phpbb_php_ini_test extends phpbb_test_case $this->assertSame(null, $this->php_ini->getNumeric('phpBB')); } + public function test_get_float() + { + $this->assertSame(1234.0, $this->php_ini->getNumeric('1234.0')); + $this->assertSame(-12345.0, $this->php_ini->getNumeric('-12345.0')); + $this->assertSame(null, $this->php_ini->getNumeric('phpBB')); + } + public function test_get_bytes_invalid() { $this->assertSame(null, $this->php_ini->getBytes(false)); |