PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms 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
 1<?php
 2require "tests.php";
 3require "enum_scope_template.php";
 4
 5check::classes(array("enum_scope_template", "TreeInt"));
 6check::functions(array("chops","treeint_chops"));
 7check::equal(0,TreeInt_Oak,"0==TreeInt_Oak");
 8check::equal(1,TreeInt_Fir,"1==TreeInt_Fir");
 9check::equal(2,TreeInt_Cedar,"2==TreeInt_Cedar");
10check::equal(TreeInt_Oak,chops(TreeInt_Oak),"TreeInt_Oak==chops(TreeInt_Oak)");
11check::equal(TreeInt_Fir,chops(TreeInt_Fir),"TreeInt_Fir==chops(TreeInt_Fir)");
12check::equal(TreeInt_Cedar,chops(TreeInt_Cedar),"TreeInt_Cedar==chops(TreeInt_Cedar)");
13
14check::done();
15?>