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

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License