Browse Source

Remove debug code

microsub
J. King 7 years ago
parent
commit
b8445fe8a7
  1. 13
      tests/bootstrap.php

13
tests/bootstrap.php

@ -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 {

Loading…
Cancel
Save