Skip to content

Commit b6299dd

Browse files
committed
don't hide output
1 parent 8b2720d commit b6299dd

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/unit/AjaxSshValidateTest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,8 @@ public function testSshValidate(bool $is_valid, string $pubkey)
2424
$_SERVER["REQUEST_METHOD"] = "POST";
2525
$_POST["key"] = $pubkey;
2626
ob_start();
27-
try {
28-
include __DIR__ . "/../../webroot/js/ajax/ssh_validate.php";
29-
} finally {
30-
$output = ob_get_clean();
31-
}
27+
include __DIR__ . "/../../webroot/js/ajax/ssh_validate.php";
28+
$output = ob_get_clean();
3229
if ($is_valid) {
3330
$this->assertEquals("true", $output);
3431
} else {

0 commit comments

Comments
 (0)