fix tests
This commit is contained in:
@@ -44,7 +44,7 @@ func TestName(t *testing.T) {
|
||||
},
|
||||
}
|
||||
|
||||
actual, _, _ := parser.Parse(bytes.NewBufferString(src), "test.php")
|
||||
actual, _, _ := parser.ParsePhp7(bytes.NewBufferString(src), "test.php")
|
||||
|
||||
assertEqual(t, expected, actual)
|
||||
}
|
||||
@@ -65,7 +65,7 @@ func TestFullyQualified(t *testing.T) {
|
||||
},
|
||||
}
|
||||
|
||||
actual, _, _ := parser.Parse(bytes.NewBufferString(src), "test.php")
|
||||
actual, _, _ := parser.ParsePhp7(bytes.NewBufferString(src), "test.php")
|
||||
|
||||
assertEqual(t, expected, actual)
|
||||
}
|
||||
@@ -86,7 +86,7 @@ func TestRelative(t *testing.T) {
|
||||
},
|
||||
}
|
||||
|
||||
actual, _, _ := parser.Parse(bytes.NewBufferString(src), "test.php")
|
||||
actual, _, _ := parser.ParsePhp7(bytes.NewBufferString(src), "test.php")
|
||||
|
||||
assertEqual(t, expected, actual)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user