]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Util/BasePathTest.php
Merge pull request #10693 from nupplaphil/feat/config_dir
[friendica.git] / tests / src / Util / BasePathTest.php
index 61c740c79c34bbe3c256e3a2c2e582eb33205f4a..7cdf612e64aa2ce31f40aeba0408ce8362c41335 100644 (file)
@@ -64,11 +64,12 @@ class BasePathTest extends MockedTest
 
        /**
         * Test the basepath determination with a complete wrong path
-        * @expectedException \Exception
-        * @expectedExceptionMessageRegExp /(.*) is not a valid basepath/
         */
        public function testFailedBasePath()
        {
+               $this->expectException(\Exception::class);
+               $this->expectExceptionMessageMatches("/(.*) is not a valid basepath/");
+               
                $basepath = new BasePath('/now23452sgfgas', []);
                $basepath->getPath();
        }