To write a test file;
using stx.Test;
class SomeTest extends TestCase{
public function test(){
//....
}
}
The convention is to create an index file;
class Tests{
static public function tests(){
return [new SomeTest()];
}
}
Create a file tests.pml
(indeces Tests)
STX_LOG_VERBOSE
is used if --debug
is not set in the build to get stack traces of thrown errors.