summaryrefslogtreecommitdiff
path: root/test/it_error.t
diff options
context:
space:
mode:
Diffstat (limited to 'test/it_error.t')
-rwxr-xr-xtest/it_error.t9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/it_error.t b/test/it_error.t
index 4d9e2ad..a45e312 100755
--- a/test/it_error.t
+++ b/test/it_error.t
@@ -8,8 +8,10 @@ $GLOBALS['debug_verboseerrors'] = 1;
if ($opts['args'][0])
foo($opts['args'][0]);
-else {
- foreach (range(1, 12) as $testnum) {
+else
+{
+ foreach (range(1, 12) as $testnum)
+ {
$errlines = explode("\n", it::exec('{cmd} {testnum} |& cat', ['cmd' => $argv[0], 'testnum' => $testnum]));
$expect = $expect = it::match('Expect: (.*)', $errlines[0]);
$errbody = join("\n", array_slice($errlines, 1));
@@ -34,7 +36,8 @@ function foo($testno)
{
$a = "hi";
- switch ($testno) {
+ switch ($testno)
+ {
case 1: expect(); echo "Trace: " . it_debug::backtrace() . "\n\n"; exit;
case 2: expect(); echo "Stack:\n" . it_debug::backtrace(['format' => "medium"]); exit;