1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-10 02:36:38 +02:00

[ticket/11501] Assert the variables instead of fail() with the condition

PHPBB3-11501
This commit is contained in:
Joas Schilling
2013-04-19 01:48:31 +02:00
parent a0d10cd7fc
commit 845832820b

View File

@@ -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()