diff --git a/src/TUnit/util/Util.php b/src/TUnit/util/Util.php index 206ba82..cae24d2 100644 --- a/src/TUnit/util/Util.php +++ b/src/TUnit/util/Util.php @@ -121,8 +121,7 @@ } $closure = create_function('', - ' - $args = func_get_args(); + '$args = func_get_args(); static $obj = null; if ($obj === null && isset($args[0]) && is_object($args[0])) { diff --git a/src/TUnit/util/entry_console.php b/src/TUnit/util/entry_console.php index ce514e5..c1dcfcb 100644 --- a/src/TUnit/util/entry_console.php +++ b/src/TUnit/util/entry_console.php @@ -21,7 +21,7 @@ global $switches; $switches = new CliSwitchCollection(); $switches->addSwitch(new CliSwitch(null, null, true, '', 'Files and/or directories to parse for test cases')) - ->addSwitch(new CliSwitch('help', 'h', false, null, 'Display this help message (--usage is an alias)')) + ->addSwitch(new CliSwitch('help', 'h', false, null, 'Display this help message (also --usage)')) ->addSwitch(new CliSwitch('recursive', null, false, null, 'Recurse into subdirectories')) ->addSwitch(new CliSwitch('bootstrap', 'b', false, 'file', 'File to include before each test'));