1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00
This commit is contained in:
Bruce Weirdan 2023-07-23 02:16:44 +02:00
parent 6eb7a688d1
commit 0a2a0feaf2
4 changed files with 11 additions and 4 deletions

View File

@ -19,6 +19,7 @@ use function array_search;
use function array_slice;
use function chdir;
use function error_log;
use function explode;
use function fwrite;
use function gc_disable;
use function getcwd;
@ -32,6 +33,7 @@ use function is_string;
use function preg_replace;
use function realpath;
use function setlocale;
use function strlen;
use function strpos;
use function strtolower;
use function substr;

View File

@ -2,6 +2,10 @@
namespace Psalm\Internal\LanguageServer;
use function rtrim;
use function strlen;
use function substr;
/** @internal */
final class PathMapper
{

View File

@ -23,6 +23,7 @@ use Psalm\Tests\LanguageServer\MockProtocolStream;
use Psalm\Tests\TestConfig;
use function Amp\Promise\wait;
use function getcwd;
use function rand;
class DiagnosticTest extends AsyncTestCase

View File

@ -13,7 +13,7 @@ final class PathMapperTest extends TestCase
$mapper->configureClientRoot('/home/user/src/project');
$this->assertSame(
'/home/user/src/project/filename.php',
$mapper->mapServerToClient('/var/www/filename.php')
$mapper->mapServerToClient('/var/www/filename.php'),
);
}
@ -25,7 +25,7 @@ final class PathMapperTest extends TestCase
$this->assertSame(
'/home/user/src/project/filename.php',
$mapper->mapServerToClient('/var/www/filename.php')
$mapper->mapServerToClient('/var/www/filename.php'),
);
}
@ -43,7 +43,7 @@ final class PathMapperTest extends TestCase
$mapper->configureClientRoot($client_root_provided_later);
$this->assertSame(
$server_ath,
$mapper->mapClientToServer($client_path)
$mapper->mapClientToServer($client_path),
);
}
@ -59,7 +59,7 @@ final class PathMapperTest extends TestCase
$mapper->configureClientRoot($client_root_provided_later);
$this->assertSame(
$client_path,
$mapper->mapServerToClient($server_path)
$mapper->mapServerToClient($server_path),
);
}