From 557f85e7fc3dc299859e846a8f406f0e19aaf465 Mon Sep 17 00:00:00 2001 From: rxu Date: Sun, 28 Aug 2016 21:36:49 +0700 Subject: [ticket/14703] Improve exception testing PHPBB3-14703 --- tests/dbal/migrator_tool_module_test.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/dbal') diff --git a/tests/dbal/migrator_tool_module_test.php b/tests/dbal/migrator_tool_module_test.php index bf4ae0b1ee..49dff8b929 100644 --- a/tests/dbal/migrator_tool_module_test.php +++ b/tests/dbal/migrator_tool_module_test.php @@ -132,7 +132,11 @@ class phpbb_dbal_migrator_tool_module_test extends phpbb_database_test_case )); $this->fail('Exception not thrown'); } - catch (Exception $e) {} + catch (Exception $e) + { + $this->assertEquals('phpbb\db\migration\exception', get_class($e)); + $this->assertEquals('MODULE_EXIST_MULTIPLE', $e->getMessage()); + } // Test adding module when plural parent module_langname exists // PHPBB3-14703 -- cgit v1.2.1