]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Util/BasePathTest.php
Merge remote-tracking branch 'upstream/2021.06-rc' into http-input-data
[friendica.git] / tests / src / Util / BasePathTest.php
index c9c7b079f9aa78cd933817c94c5efde7aa603835..ffafa5b55a69bb37d6511c3cb815eb3cf2cc9a4e 100644 (file)
@@ -59,16 +59,17 @@ class BasePathTest extends MockedTest
        public function testDetermineBasePath(array $server, $input, $output)
        {
                $basepath = new BasePath($input, $server);
-               $this->assertEquals($output, $basepath->getPath());
+               self::assertEquals($output, $basepath->getPath());
        }
 
        /**
         * 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->expectExceptionMessageRegExp("/(.*) is not a valid basepath/");
+               
                $basepath = new BasePath('/now23452sgfgas', []);
                $basepath->getPath();
        }