Dev Php Gui
Somethings I think the PHP GUI should have
STK namespace. All STK projects that someday may have a PHP API, will go into STK namespace.
U namespace - so if someday there will be more STK PHP projects, there will be no conflicts
- STK\U\Unit->getTestSuites()
return an array of TestSuite objects (read from stk_unit.test_suite view)
- STK\U\Unit->getTestCases()
return an array of TestCase objects (read from stk_unit.test_case view)
- TestSuite->getName()
- TestSuite->run() - execute "CALL stk_unit.test_suite_run('tsname');"
- TestSuite->getAsString($format = 'html') - execute "CALL stk_unit.config_set('out_format', 'html');", and then "SELECT stk_unit.test_suite_show('tsname');" and returns string.
- TestCase->getName()
- TestCase->run() - execute "CALL stk_unit.test_case_run(tcname);"
- TestSuite->getAsString($format = 'html') - execute "CALL stk_unit.config_set('out_format', 'html');", and then "SELECT stk_unit.test_case_show('tcname');" and returns string.
…to be continued
Federico
page revision: 0, last edited: 23 Feb 2013 15:55