diff --git a/tests/unit/phpDocumentor/Infrastructure/FlySystemFactoryTest.php b/tests/unit/phpDocumentor/Infrastructure/FlySystemFactoryTest.php
index <HASH>..<HASH> 100644
--- a/tests/unit/phpDocumentor/Infrastructure/FlySystemFactoryTest.php
+++ b/tests/unit/phpDocumentor/Infrastructure/FlySystemFactoryTest.php
@@ -60,7 +60,7 @@ class FlySystemFactoryTest extends \Mockery\Adapter\Phpunit\MockeryTestCase
         /** @var AbstractAdapter $adapter */
         $adapter = $result->getAdapter();
         $pathPrefix = $adapter->getPathPrefix();
-        $this->assertEquals('/tmp' . DIRECTORY_SEPARATOR, $pathPrefix);
+        $this->assertEquals(realpath('/tmp') . DIRECTORY_SEPARATOR, $pathPrefix);
     }
 
     /**
Ensure that the test works on both Mac and Linux