Add explicit call to getPathname() to prevent strange serialization problems with PHPUnit.