diff --git a/context_test.go b/context_test.go index 392b4ac..c0be3cb 100644 --- a/context_test.go +++ b/context_test.go @@ -12,7 +12,7 @@ var execTests = []struct { file string // Filename to run expected string // Expected output }{ - {"hello.php", "Hello World"}, + {"echo.php", "Hello World"}, } func TestContextExec(t *testing.T) { @@ -39,5 +39,5 @@ func TestContextExec(t *testing.T) { func init() { wd, _ := os.Getwd() - testDir = path.Join(wd, "tests") + testDir = path.Join(wd, "test") } diff --git a/tests/hello.php b/test/echo.php similarity index 53% rename from tests/hello.php rename to test/echo.php index 83581d8..b2d9e6c 100644 --- a/tests/hello.php +++ b/test/echo.php @@ -4,7 +4,4 @@ * Simple Hello World PHP test. */ -$h = 'Hello'; -$w = 'World'; - -echo "$h $w"; \ No newline at end of file +echo 'Hello World'; \ No newline at end of file