Added tests for PhP language server

This commit is contained in:
Michael Panchenko committed 2025-05-19 12:51:44 +02:00
1 parent 3848e5ec6e
commit 81b7192410
5 files changed
+183

No files matched your search

@@ -0,0 +1,7 @@
<?php
function helperFunction(): void {
echo "Helper function was called.";
}
?>
@@ -0,0 +1,16 @@
<?php
require_once 'helper.php';
function greet(string $name): string {
return "Hello, " . $name . "!";
}
$userName = "PHP User";
$greeting = greet($userName);
echo $greeting;
helperFunction();
?>
@@ -0,0 +1,4 @@
<?php
$localVar = "test";
echo $localVar;
?>