diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2018-12-30 11:36:08 +0100 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2019-05-09 21:40:06 +0200 |
| commit | ebac54aa9e705e99a562d2fe2c0f57bc6af8dd32 (patch) | |
| tree | a6f45f42c8861ba60216517687bfe72084ba7dcb /tests/controller | |
| parent | d968392b4d4aa45afc7fbe75e0ad0a1d06e9275e (diff) | |
| download | forums-ebac54aa9e705e99a562d2fe2c0f57bc6af8dd32.tar forums-ebac54aa9e705e99a562d2fe2c0f57bc6af8dd32.tar.gz forums-ebac54aa9e705e99a562d2fe2c0f57bc6af8dd32.tar.bz2 forums-ebac54aa9e705e99a562d2fe2c0f57bc6af8dd32.tar.xz forums-ebac54aa9e705e99a562d2fe2c0f57bc6af8dd32.zip | |
[ticket/14948] Adjust calls for twig and phpunit updates
PHPBB3-14948
Diffstat (limited to 'tests/controller')
| -rw-r--r-- | tests/controller/common_helper_route.php | 2 | ||||
| -rw-r--r-- | tests/controller/controller_test.php | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/controller/common_helper_route.php b/tests/controller/common_helper_route.php index 21a7cfd182..447c10d10e 100644 --- a/tests/controller/common_helper_route.php +++ b/tests/controller/common_helper_route.php @@ -29,7 +29,7 @@ abstract class phpbb_controller_common_helper_route extends phpbb_test_case private $router; private $routing_helper; - public function setUp() + public function setUp(): void { global $phpbb_dispatcher, $phpbb_root_path, $phpEx; diff --git a/tests/controller/controller_test.php b/tests/controller/controller_test.php index 34839e65d0..ddc1921b0e 100644 --- a/tests/controller/controller_test.php +++ b/tests/controller/controller_test.php @@ -21,7 +21,7 @@ use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; class phpbb_controller_controller_test extends phpbb_test_case { - public function setUp() + public function setUp(): void { $this->extension_manager = new phpbb_mock_extension_manager( dirname(__FILE__) . '/', @@ -128,7 +128,8 @@ class phpbb_controller_controller_test extends phpbb_test_case if (!empty($exception)) { - $this->setExpectedException($exception, $exception_message); + $this->expectException($exception); + $this->expectExceptionMessage($exception_message); } $this->assertEquals($expected, $resolver->getArguments($symfony_request, $input)); |
