From 3a7cf40aaa678bea1df143d2982d603b7a334eec Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 27 Nov 2019 15:27:18 +0100 Subject: Mode to modern phpunit Signed-off-by: Roeland Jago Douma --- tests/lib/RichObjectStrings/DefinitionsTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/lib/RichObjectStrings') diff --git a/tests/lib/RichObjectStrings/DefinitionsTest.php b/tests/lib/RichObjectStrings/DefinitionsTest.php index e0d400bff2c..829689704e7 100644 --- a/tests/lib/RichObjectStrings/DefinitionsTest.php +++ b/tests/lib/RichObjectStrings/DefinitionsTest.php @@ -36,11 +36,11 @@ class DefinitionsTest extends TestCase { return $testsuite; } - /** - * @expectedException \OCP\RichObjectStrings\InvalidObjectExeption - * @expectedExceptionMessage Object type is undefined - */ + public function testGetDefinitionNotExisting() { + $this->expectException(\OCP\RichObjectStrings\InvalidObjectExeption::class); + $this->expectExceptionMessage('Object type is undefined'); + $definitions = new Definitions(); $definitions->getDefinition('NotExistingType'); } -- cgit v1.2.3