]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Util/BasePathTest.php
Add checks & realpath() usage
[friendica.git] / tests / src / Util / BasePathTest.php
index 3c619255cfe959c419760eedb9d7d4c9d778e437..c9c7b079f9aa78cd933817c94c5efde7aa603835 100644 (file)
@@ -58,7 +58,8 @@ class BasePathTest extends MockedTest
         */
        public function testDetermineBasePath(array $server, $input, $output)
        {
-               $this->assertEquals($output, BasePath::create($input, $server));
+               $basepath = new BasePath($input, $server);
+               $this->assertEquals($output, $basepath->getPath());
        }
 
        /**
@@ -68,6 +69,7 @@ class BasePathTest extends MockedTest
         */
        public function testFailedBasePath()
        {
-               BasePath::create('/now23452sgfgas', []);
+               $basepath = new BasePath('/now23452sgfgas', []);
+               $basepath->getPath();
        }
 }