mirror of
https://github.com/danog/parser.git
synced 2024-11-26 20:04:57 +01:00
parser: add statement to class method test
This commit is contained in:
parent
20f957083a
commit
aed95d9036
@ -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),
|
||||
] }
|
||||
])
|
||||
])
|
||||
]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user