diff options
Diffstat (limited to 'tests/lib/Files/Utils/ScannerTest.php')
-rw-r--r-- | tests/lib/Files/Utils/ScannerTest.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/lib/Files/Utils/ScannerTest.php b/tests/lib/Files/Utils/ScannerTest.php index 9f057960b60..4af252735f6 100644 --- a/tests/lib/Files/Utils/ScannerTest.php +++ b/tests/lib/Files/Utils/ScannerTest.php @@ -157,11 +157,12 @@ class ScannerTest extends \Test\TestCase { /** * @dataProvider invalidPathProvider - * @expectedException \InvalidArgumentException - * @expectedExceptionMessage Invalid path to scan * @param string $invalidPath */ public function testInvalidPathScanning($invalidPath) { + $this->expectException(\InvalidArgumentException::class); + $this->expectExceptionMessage('Invalid path to scan'); + $scanner = new TestScanner('', \OC::$server->getDatabaseConnection(), \OC::$server->getLogger()); $scanner->scan($invalidPath); } |