aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2012-06-11 15:31:25 +0200
committerAndreas Fischer <bantu@phpbb.com>2012-06-11 15:46:03 +0200
commit72212077ebecee639c49c473646a38340908d058 (patch)
treef58c59c8b91e63be83a8905d6d3e4badd7b664aa
parentcbff02db4f84c83c62bdd1f7450b8afbf39a5270 (diff)
downloadforums-72212077ebecee639c49c473646a38340908d058.tar
forums-72212077ebecee639c49c473646a38340908d058.tar.gz
forums-72212077ebecee639c49c473646a38340908d058.tar.bz2
forums-72212077ebecee639c49c473646a38340908d058.tar.xz
forums-72212077ebecee639c49c473646a38340908d058.zip
[ticket/10931] Also test get_bytes() and get_string() with false.
PHPBB3-10931
-rw-r--r--tests/wrapper/phpbb_php_ini_test.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/wrapper/phpbb_php_ini_test.php b/tests/wrapper/phpbb_php_ini_test.php
index 418448f102..8e08d5c204 100644
--- a/tests/wrapper/phpbb_php_ini_test.php
+++ b/tests/wrapper/phpbb_php_ini_test.php
@@ -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'));