aboutsummaryrefslogtreecommitdiff
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 /tests/wrapper
parent[ticket/10931] Make to_numeric function globally available. (diff)
downloadphpbb-72212077ebecee639c49c473646a38340908d058.tar.gz
phpbb-72212077ebecee639c49c473646a38340908d058.tar.bz2
phpbb-72212077ebecee639c49c473646a38340908d058.zip
[ticket/10931] Also test get_bytes() and get_string() with false.
PHPBB3-10931
Diffstat (limited to 'tests/wrapper')
-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'));