1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2025-01-03 14:32:40 +00:00

Remove debug code

This commit is contained in:
J. King 2017-02-11 13:51:54 -05:00
parent 849294d082
commit b8445fe8a7

View file

@ -17,19 +17,6 @@ trait TestingHelpers {
$this->expectException($class);
$this->expectExceptionCode($code);
}
function assertExc(string $msg, string $prefix = "", string $type = "Exception") {
$class = NS_BASE . ($prefix !== "" ? str_replace("/", "\\", $prefix) . "\\" : "") . $type;
$msgID = ($prefix !== "" ? $prefix . "/" : "") . $type. ".$msg";
if(array_key_exists($msgID, Exception::CODES)) {
$code = Exception::CODES[$msgID];
} else {
$code = 0;
}
echo $class."\n";
$this->expectException($class);
$this->expectExceptionCode($code);
}
}
trait LanguageTestingHelpers {