From a24ea675f28b4f96460307bacf9d302cfe6ca471 Mon Sep 17 00:00:00 2001 From: Anton Ukhanev Date: Wed, 2 Jun 2021 22:59:56 +0200 Subject: [PATCH] Remove deprecated annotation The `@expectedException` is deprecated, and removed in PHPUnit 9. https://thephp.cc/articles/migrating-to-phpunit-9 --- Psr/Log/Test/LoggerInterfaceTest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Psr/Log/Test/LoggerInterfaceTest.php b/Psr/Log/Test/LoggerInterfaceTest.php index e1e5354..94cfc72 100644 --- a/Psr/Log/Test/LoggerInterfaceTest.php +++ b/Psr/Log/Test/LoggerInterfaceTest.php @@ -65,12 +65,11 @@ public function provideLevelsAndMessages() ); } - /** - * @expectedException \Psr\Log\InvalidArgumentException - */ public function testThrowsOnInvalidLevel() { $logger = $this->getLogger(); + + $this->expectException(InvalidArgumentException::class); $logger->log('invalid level', 'Foo'); }