*
*/
class RegisterTest extends UnitTestCase
-{
+{
public function testLoadModule()
{
$this->assertTrue(BSRegister::LoadModule('Input') instanceof BSInput);
$this->assertIdentical(true, BSRegister::GetDebug());
}
+ public function testDebugList()
+ {
+ $this->assertEqual('<select><option>Debug Notices (0)</option></select>', BSRegister::GetDebugList());
+
+ BSRegister::Debug('dbg');
+ $this->assertEqual('<select><option>Debug Notices (1)</option><option>--- dbg</option></select>', BSRegister::GetDebugList());
+ }
+
public function testRegisterValue()
{
BSRegister::Register('someKey', 'someValue');