Skip to content
This repository was archived by the owner on Sep 9, 2019. It is now read-only.

Commit 99063ed

Browse files
committed
Fix forward compat for RunnerTest
1 parent a456137 commit 99063ed

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

ChangeLog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ XP Compiler ChangeLog
33

44
## ?.?.? / ????-??-??
55

6+
## 5.0.1 / 2015-12-20
7+
8+
* Replaced deprecated ensure() with a finally statement, creating forward
9+
compatibility with XP 6.9.0
10+
(@thekid)
11+
612
## 5.0.0 / 2015-12-13
713

814
* **Heads up**: Changed minimum XP version to run the XP compiler to XP

src/test/php/net/xp_lang/tests/RunnerTest.class.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,11 @@ protected function run($args= []) {
2323

2424
try {
2525
$exit= Runner::main($args);
26-
$r= ['exit' => $exit, 'out' => $out->getBytes(), 'err' => $err->getBytes()];
27-
} catch (Throwable $t) {
28-
// Fall through
29-
} ensure($t); {
26+
return ['exit' => $exit, 'out' => $out->getBytes(), 'err' => $err->getBytes()];
27+
} finally {
3028
Console::$out->setStream($saved['out']);
3129
Console::$err->setStream($saved['err']);
32-
if ($t) throw ($t);
3330
}
34-
35-
return $r;
3631
}
3732

3833
/**

0 commit comments

Comments
 (0)