1
0
mirror of https://github.com/deuill/go-php.git synced 2024-09-21 00:40:45 +00:00

Rename tests directory to `test.

This commit is contained in:
Alex Palaistras 2015-09-19 22:20:48 +01:00
parent 44909ebb7f
commit ee779b3698
2 changed files with 3 additions and 6 deletions

View File

@ -12,7 +12,7 @@ var execTests = []struct {
file string // Filename to run file string // Filename to run
expected string // Expected output expected string // Expected output
}{ }{
{"hello.php", "Hello World"}, {"echo.php", "Hello World"},
} }
func TestContextExec(t *testing.T) { func TestContextExec(t *testing.T) {
@ -39,5 +39,5 @@ func TestContextExec(t *testing.T) {
func init() { func init() {
wd, _ := os.Getwd() wd, _ := os.Getwd()
testDir = path.Join(wd, "tests") testDir = path.Join(wd, "test")
} }

View File

@ -4,7 +4,4 @@
* Simple Hello World PHP test. * Simple Hello World PHP test.
*/ */
$h = 'Hello'; echo 'Hello World';
$w = 'World';
echo "$h $w";