parser: add statement to class method test

This commit is contained in:
Ryan Chandler 2022-07-19 11:51:11 +01:00
parent 20f957083a
commit aed95d9036
No known key found for this signature in database
GPG Key ID: F113BCADDB3B0CCA

View File

@ -389,12 +389,16 @@ mod tests {
class Foo {
function bar() {
echo 1;
}
}
", &[
class!("Foo", &[
method!("bar", &[], &[], &[])
method!("bar", &[], &[], &[
Statement::Echo { values: vec![
Expression::Int(1),
] }
])
])
]);
}