aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dbal
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2012-03-04 22:11:45 +0100
committerAndreas Fischer <bantu@phpbb.com>2012-03-04 22:11:45 +0100
commitf3af5945e3675c4d799000908c88475ee7016ac4 (patch)
treec8afebe0509cba24c7effdaee068ccc2f8d968bc /tests/dbal
parent6df721b21528e4d9881fa191159b123bb2b6b33f (diff)
downloadforums-f3af5945e3675c4d799000908c88475ee7016ac4.tar
forums-f3af5945e3675c4d799000908c88475ee7016ac4.tar.gz
forums-f3af5945e3675c4d799000908c88475ee7016ac4.tar.bz2
forums-f3af5945e3675c4d799000908c88475ee7016ac4.tar.xz
forums-f3af5945e3675c4d799000908c88475ee7016ac4.zip
[ticket/10653] Fix parameter to substr() in unit tests. Should be 1, not -1.
PHPBB3-10653
Diffstat (limited to 'tests/dbal')
-rw-r--r--tests/dbal/select_test.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/dbal/select_test.php b/tests/dbal/select_test.php
index 9d46b47b17..21b12777dc 100644
--- a/tests/dbal/select_test.php
+++ b/tests/dbal/select_test.php
@@ -373,7 +373,7 @@ class phpbb_dbal_select_test extends phpbb_database_test_case
if (is_string($actual) && isset($actual[0]) && $actual[0] === '~')
{
- $actual = substr($actual, -1);
+ $actual = substr($actual, 1);
}
$this->assertGreaterThan(