// BEGIN HIDDEN TEST $actual = ""; $expected = "Hello, world!" . PHP_EOL; try { $actual = $testFunc(); } catch(Exception $e) { throw new Exception("FAILED: " . $e->getMessage()); } finally { if ($expected !== $actual) { throw new Exception('FAILED: "' . $expected . '" DOES NOT EQUAL "' . $actual . '"'); } echo "PASSED"; } // END HIDDEN TEST