mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/13904] Add back tests for retrieving floats
PHPBB3-13904
This commit is contained in:
parent
b29b62debe
commit
c3ccd423d2
1 changed files with 7 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue