fix tests

This commit is contained in:
z7zmey
2018-01-17 19:18:35 +02:00
parent f6911a76b1
commit c6f73cf618
7 changed files with 31 additions and 31 deletions

View File

@@ -41,7 +41,7 @@ func TestAltIf(t *testing.T) {
},
}
actual, _, _ := parser.Parse(bytes.NewBufferString(src), "test.php")
actual, _, _ := parser.ParsePhp7(bytes.NewBufferString(src), "test.php")
assertEqual(t, expected, actual)
}
@@ -68,7 +68,7 @@ func TestAltElseIf(t *testing.T) {
},
}
actual, _, _ := parser.Parse(bytes.NewBufferString(src), "test.php")
actual, _, _ := parser.ParsePhp7(bytes.NewBufferString(src), "test.php")
assertEqual(t, expected, actual)
}
@@ -92,7 +92,7 @@ func TestAltElse(t *testing.T) {
},
}
actual, _, _ := parser.Parse(bytes.NewBufferString(src), "test.php")
actual, _, _ := parser.ParsePhp7(bytes.NewBufferString(src), "test.php")
assertEqual(t, expected, actual)
}
@@ -128,7 +128,7 @@ func TestAltElseElseIf(t *testing.T) {
},
}
actual, _, _ := parser.Parse(bytes.NewBufferString(src), "test.php")
actual, _, _ := parser.ParsePhp7(bytes.NewBufferString(src), "test.php")
assertEqual(t, expected, actual)
}