aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-04-19 01:48:31 +0200
committerJoas Schilling <nickvergessen@gmx.de>2013-04-19 01:48:31 +0200
commit845832820ba89a0f33e264a34639a05045783397 (patch)
tree4d00e4437c9f24e424b9f05d3bc241378bbc60cf /tests
parenta0d10cd7fcf9449a025811f4adc1e9d8b1e5ac89 (diff)
downloadforums-845832820ba89a0f33e264a34639a05045783397.tar
forums-845832820ba89a0f33e264a34639a05045783397.tar.gz
forums-845832820ba89a0f33e264a34639a05045783397.tar.bz2
forums-845832820ba89a0f33e264a34639a05045783397.tar.xz
forums-845832820ba89a0f33e264a34639a05045783397.zip
[ticket/11501] Assert the variables instead of fail() with the condition
PHPBB3-11501
Diffstat (limited to 'tests')
-rw-r--r--tests/dbal/migrator_test.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/tests/dbal/migrator_test.php b/tests/dbal/migrator_test.php
index 89669b85ec..0d7fc2f839 100644
--- a/tests/dbal/migrator_test.php
+++ b/tests/dbal/migrator_test.php
@@ -144,15 +144,8 @@ class phpbb_dbal_migrator_test extends phpbb_database_test_case
$this->migrator->update();
}
- if ($migrator_test_if_true_failed)
- {
- $this->fail('True test failed');
- }
-
- if ($migrator_test_if_false_failed)
- {
- $this->fail('False test failed');
- }
+ $this->assertFalse($migrator_test_if_true_failed, 'True test failed');
+ $this->assertFalse($migrator_test_if_false_failed, 'False test failed');
}
public function test_recall()