mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:11:47 +02:00
[ticket/10931] Also test get_bytes() and get_string() with false.
PHPBB3-10931
This commit is contained in:
@@ -21,6 +21,7 @@ class phpbb_wrapper_phpbb_php_ini_test extends phpbb_test_case
|
|||||||
|
|
||||||
public function test_get_string()
|
public function test_get_string()
|
||||||
{
|
{
|
||||||
|
$this->assertSame(false, $this->php_ini->get_string(false));
|
||||||
$this->assertSame('phpbb', $this->php_ini->get_string(' phpbb '));
|
$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()
|
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('phpBB'));
|
||||||
$this->assertSame(false, $this->php_ini->get_bytes('k'));
|
$this->assertSame(false, $this->php_ini->get_bytes('k'));
|
||||||
$this->assertSame(false, $this->php_ini->get_bytes('-k'));
|
$this->assertSame(false, $this->php_ini->get_bytes('-k'));
|
||||||
|
Reference in New Issue
Block a user