throw exception in nice_die during tests
Exits during testing will break the whole test suite. It makes more sense to throw an exception in that case. The exception's stack trace will help to debug the actual problem
This commit is contained in:
parent
27c0c399d7
commit
3862da0e1f
|
@ -527,6 +527,9 @@ function nice_die($msg){
|
|||
</body>
|
||||
</html>
|
||||
EOT;
|
||||
if(defined('DOKU_UNITTEST')) {
|
||||
throw new RuntimeException('nice_die: '.$msg);
|
||||
}
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue