mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-23 09:07:43 +02:00
[ticket/10931] Also test get_bytes() and get_string() with false.
PHPBB3-10931
This commit is contained in:
parent
cbff02db4f
commit
72212077eb
@ -21,6 +21,7 @@ class phpbb_wrapper_phpbb_php_ini_test extends phpbb_test_case
|
||||
|
||||
public function test_get_string()
|
||||
{
|
||||
$this->assertSame(false, $this->php_ini->get_string(false));
|
||||
$this->assertSame('phpbb', $this->php_ini->get_string(' phpbb '));
|
||||
}
|
||||
|
||||
@ -52,6 +53,7 @@ class phpbb_wrapper_phpbb_php_ini_test extends phpbb_test_case
|
||||
|
||||
public function test_get_bytes_invalid()
|
||||
{
|
||||
$this->assertSame(false, $this->php_ini->get_bytes(false));
|
||||
$this->assertSame(false, $this->php_ini->get_bytes('phpBB'));
|
||||
$this->assertSame(false, $this->php_ini->get_bytes('k'));
|
||||
$this->assertSame(false, $this->php_ini->get_bytes('-k'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user