PageRenderTime 31ms CodeModel.GetById 25ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/php/sym_runme.php

#
PHP | 22 lines | 14 code | 5 blank | 3 comment | 0 complexity | 4aa750a300d6e3d48eeea6d97c4e3476 MD5 | raw file
 1<?php
 2
 3require "tests.php";
 4require "sym.php";
 5
 6// No new functions
 7check::functions(array());
 8// No new classes
 9check::classes(array(flim,flam));
10// now new vars
11check::globals(array());
12
13$flim=new flim();
14$flam=new flam();
15
16check::equal($flim->hulahoops(),"flim-jam","flim()->hulahoops==flim-jam");
17check::equal($flim->jar(),"flim-jar","flim()->jar==flim-jar");
18check::equal($flam->jam(),"flam-jam","flam()->jam==flam-jam");
19check::equal($flam->jar(),"flam-jar","flam()->jar==flam-jar");
20
21check::done();
22?>