mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 05:18:52 +00:00
[ticket/10931] Also test get_bytes() and get_string() with false.
PHPBB3-10931
This commit is contained in:
parent
cbff02db4f
commit
72212077eb
1 changed files with 2 additions and 0 deletions
|
@ -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'));
|
||||||
|
|
Loading…
Add table
Reference in a new issue