3 # Basic test of classes for hip hop assembler.
13 .method [public] __construct {
14 String "default constructor\n"
22 .method [public static] print_it($x) {
33 .method [protected] prot_method() {
34 String "In protected method\n"
39 .method [public] overriden() {
40 String "Base::overriden\n"
46 .class [interface] IDunno {
48 .method [public abstract] abs_method {
49 String "Pure virtual method called"
50 Fatal RuntimeOmitFrame
54 .class [interface] IDunno2 { .default_ctor; }
56 .class Derived extends Base implements(IDunno IDunno2) {
57 .method [public] some_junk {
61 FCallObjMethodD <> 0 1 "" - "" "" NullThrows "prot_method"
68 .method [public] overriden() {
69 String "Derived::overriden\n"
74 .method [public] abs_method() {
75 String "in an abstract method\n"
82 .property [public] funk;
84 .method [public] print_funk {
91 QueryM 1 CGet PL:$name
98 .property [private] defaulted = """s:3:"heh";""";
99 .property [private] badstring =
100 """s:30:"bad string\"""has triple quotes";""";
102 .method [public] print_defaulted {
105 QueryM 1 CGet PT:"defaulted"
113 QueryM 1 CGet PT:"badstring"
114 String "bad string\"\"\"has triple quotes"
120 broken: String "string escaping is broken\n"
126 .function prop_test {
131 FCallCtor <LockWhileUnwinding> 0 1 "" - "" ""
138 String "value of funk"
146 FCallObjMethodD <> 0 1 "" - "" "" NullThrows "print_funk"
152 FCallObjMethodD <> 0 1 "" - "" "" NullThrows "print_defaulted"
159 .function ["__EntryPoint"("""y:0:{}""")] main {
164 FCallCtor <LockWhileUnwinding> 0 1 "" - "" ""
173 String "printing this string"
177 FCallClsMethod <> 1 1 "" - "" "" LogAsDynamicCall
184 FCallCtor <LockWhileUnwinding> 0 1 "" - "" ""
193 FCallObjMethodD <> 0 1 "" - "" "" NullThrows "some_junk"
199 FCallObjMethodD <> 0 1 "" - "" "" NullThrows "overriden"
205 FCallObjMethodD <> 0 1 "" - "" "" NullThrows "overriden"
211 FCallObjMethodD <> 0 1 "" - "" "" NullThrows "abs_method"
217 FCallFuncD <> 0 1 "" - "" "prop_test"