PageRenderTime 43ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
PHP | 15 lines | 13 code | 2 blank | 0 comment | 0 complexity | d07a152e84112661b1b08de716556a27 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. <?php
  2. require "tests.php";
  3. require "enum_scope_template.php";
  4. check::classes(array("enum_scope_template", "TreeInt"));
  5. check::functions(array("chops","treeint_chops"));
  6. check::equal(0,TreeInt_Oak,"0==TreeInt_Oak");
  7. check::equal(1,TreeInt_Fir,"1==TreeInt_Fir");
  8. check::equal(2,TreeInt_Cedar,"2==TreeInt_Cedar");
  9. check::equal(TreeInt_Oak,chops(TreeInt_Oak),"TreeInt_Oak==chops(TreeInt_Oak)");
  10. check::equal(TreeInt_Fir,chops(TreeInt_Fir),"TreeInt_Fir==chops(TreeInt_Fir)");
  11. check::equal(TreeInt_Cedar,chops(TreeInt_Cedar),"TreeInt_Cedar==chops(TreeInt_Cedar)");
  12. check::done();
  13. ?>