mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-21 08:12:17 +02:00
[ticket/13904] Add back tests for retrieving floats
PHPBB3-13904
This commit is contained in:
parent
b29b62debe
commit
c3ccd423d2
@ -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…
x
Reference in New Issue
Block a user