1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-12 09:29:47 +01:00
PHP-Parser/test/code/parser/stmt/tryCatch.test

39 lines
661 B
Plaintext
Raw Normal View History

2011-11-27 11:20:35 +01:00
Try/catch
-----
<?php
try {
} catch (A $b) {
} catch (B $c) {
}
-----
array(
0: Stmt_TryCatch(
stmts: array(
)
catches: array(
0: Stmt_Catch(
type: Name(
parts: array(
0: A
)
)
var: b
stmts: array(
)
)
1: Stmt_Catch(
type: Name(
parts: array(
0: B
)
)
var: c
stmts: array(
)
)
)
)
)