diff options
Diffstat (limited to 'tests/lib/Security/IdentityProof/ManagerTest.php')
-rw-r--r-- | tests/lib/Security/IdentityProof/ManagerTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/Security/IdentityProof/ManagerTest.php b/tests/lib/Security/IdentityProof/ManagerTest.php index 2d66845ba8d..aff6d3ed5c7 100644 --- a/tests/lib/Security/IdentityProof/ManagerTest.php +++ b/tests/lib/Security/IdentityProof/ManagerTest.php @@ -50,7 +50,7 @@ class ManagerTest extends TestCase { /** @var ILogger|MockObject */ private $logger; - public function setUp() { + protected function setUp(): void { parent::setUp(); /** @var Factory|\PHPUnit_Framework_MockObject_MockObject $factory */ @@ -219,10 +219,10 @@ class ManagerTest extends TestCase { } - /** - * @expectedException \RuntimeException - */ + public function testGetSystemKeyFailure() { + $this->expectException(\RuntimeException::class); + $manager = $this->getManager(['retrieveKey']); /** @var Key|\PHPUnit_Framework_MockObject_MockObject $key */ |