diff --git a/.php_cs.cache b/.php_cs.cache new file mode 100644 index 0000000..c1dd9d3 --- /dev/null +++ b/.php_cs.cache @@ -0,0 +1 @@ +{"php":"7.4.11","version":"2.16.7","indent":" ","lineEnding":"\n","rules":{"blank_line_after_namespace":true,"braces":true,"class_definition":true,"constant_case":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"method_argument_space":{"on_multiline":"ensure_fully_multiline","keep_multiple_spaces_after_comma":true},"no_break_comment":true,"no_closing_tag":true,"no_spaces_after_function_name":true,"no_spaces_inside_parenthesis":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":{"elements":["property"]},"single_import_per_statement":true,"single_line_after_imports":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"visibility_required":true,"encoding":true,"full_opening_tag":true,"array_syntax":{"syntax":"short"},"ordered_imports":{"sortAlgorithm":"alpha"},"no_unused_imports":true,"not_operator_with_successor_space":true,"trailing_comma_in_multiline_array":true,"phpdoc_scalar":true,"unary_operator_spaces":true,"binary_operator_spaces":true,"blank_line_before_statement":{"statements":["break","continue","declare","return","throw","try"]},"phpdoc_single_line_var_spacing":true,"phpdoc_var_without_name":true,"class_attributes_separation":{"elements":["method"]},"single_trait_insert_per_statement":true},"hashes":{"src\/Exceptions\/InvalidConfigfile.php":3726940075,"src\/WatcherCommand.php":55063746,"src\/Screens\/Screen.php":209347104,"src\/Screens\/Phpunit.php":471152477,"src\/Screens\/FilterFileName.php":1702088248,"src\/Screens\/FilterGroupName.php":3733192942,"src\/Screens\/FilterTestSuiteName.php":4098524565,"src\/Screens\/RandomSeed.php":3821125931,"src\/Screens\/FilterTestName.php":2105192502,"src\/OS.php":3130478832,"src\/Watcher.php":1218152478,"src\/ConsoleApplication.php":3597338225,"src\/Notification.php":2793188039,"src\/Terminal.php":2320004944,"src\/WatcherFactory.php":3742376422,"tests\/PhpunitWatcherTest.php":2501378901,"tests\/helpers.php":3694370939,"tests\/WatcherCommandTest.php":3056049637,"tests\/WatcherFactoryTest.php":2452223823}} \ No newline at end of file diff --git a/src/Screens/Phpunit.php b/src/Screens/Phpunit.php index b5430bc..e01a2c7 100644 --- a/src/Screens/Phpunit.php +++ b/src/Screens/Phpunit.php @@ -46,32 +46,41 @@ public function registerListeners() switch ($line) { case '': $this->terminal->refreshScreen(); + break; case 'a': $this->options['phpunit']['arguments'] = ''; $this->terminal->displayScreen(new self($this->options)); + break; case 'g': $this->terminal->displayScreen(new FilterGroupName()); + break; case 's': $this->terminal->displayScreen(new FilterTestSuiteName()); + break; case 't': $this->terminal->displayScreen(new FilterTestName()); + break; case 'p': $this->terminal->displayScreen(new FilterFileName()); + break; case 'r': $this->terminal->displayScreen(new RandomSeed()); + break; case 'q': die(); + break; default: $this->registerListeners(); + break; } });