mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-15 06:16:18 +00:00
Added tests for PhP language server
This commit is contained in:
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;
|
||||
?>
|
||||
Reference in new issue
Block a user