mirror of
https://github.com/deuill/go-php.git
synced 2024-09-21 08:50:45 +00:00
Rename tests
directory to `test.
This commit is contained in:
parent
44909ebb7f
commit
ee779b3698
@ -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")
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,4 @@
|
|||||||
* Simple Hello World PHP test.
|
* Simple Hello World PHP test.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$h = 'Hello';
|
echo 'Hello World';
|
||||||
$w = 'World';
|
|
||||||
|
|
||||||
echo "$h $w";
|
|
Loading…
Reference in New Issue
Block a user