Skip to content

Commit

Permalink
Added meta for Console Command exit codes constants (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
King2500 committed Jun 3, 2020
1 parent f58f043 commit f64e1dc
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Symfony/Component/Console/.phpstorm.meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,18 @@
expectedReturnValues(\Symfony\Component\Console\Helper\TableStyle::getPadType(), STR_PAD_LEFT, STR_PAD_RIGHT, STR_PAD_BOTH);

registerArgumentsSet('symfony_console_exitcodes',
\Symfony\Component\Console\Command\Command::SUCCESS,
\Symfony\Component\Console\Command\Command::FAILURE
);
expectedReturnValues(\Symfony\Component\Console\Command\Command::execute(), argumentsSet('symfony_console_exitcodes'));
expectedReturnValues(\Symfony\Component\Console\Command\Command::run(), argumentsSet('symfony_console_exitcodes'));

registerArgumentsSet('symfony_console_event_exitcodes',
\Symfony\Component\Console\Command\Command::SUCCESS,
\Symfony\Component\Console\Command\Command::FAILURE,
\Symfony\Component\Console\Event\ConsoleCommandEvent::RETURN_CODE_DISABLED
);
expectedReturnValues(\Symfony\Component\Console\Event\ConsoleErrorEvent::getExitCode(), argumentsSet('symfony_console_exitcodes'));
expectedReturnValues(\Symfony\Component\Console\Event\ConsoleTerminateEvent::getExitCode(), argumentsSet('symfony_console_exitcodes'));
expectedArguments(\Symfony\Component\Console\Event\ConsoleErrorEvent::setExitCode(), 0, argumentsSet('symfony_console_event_exitcodes'));
expectedReturnValues(\Symfony\Component\Console\Event\ConsoleErrorEvent::getExitCode(), argumentsSet('symfony_console_event_exitcodes'));
expectedReturnValues(\Symfony\Component\Console\Event\ConsoleTerminateEvent::getExitCode(), argumentsSet('symfony_console_event_exitcodes'));
}

0 comments on commit f64e1dc

Please sign in to comment.