diff --git a/.travis.yml b/.travis.yml index 39d6459..5b31c9c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,6 +22,8 @@ matrix: - SYMFONY_VERSION='~4.3.0' - php: '7.2' env: SYMFONY_VERSION='~4.3.0' + - php: '7.2' + env: SYMFONY_VERSION='^5.0' allow_failures: - php: nightly diff --git a/composer.json b/composer.json index 7a4329d..49d6cff 100644 --- a/composer.json +++ b/composer.json @@ -19,12 +19,13 @@ "require": { "php": "^7.1", "psy/psysh": "^0.8 || ^0.9", - "symfony/expression-language": "^4.3", - "symfony/framework-bundle": "^4.3" + "symfony/debug": "^4.3|^4.4", + "symfony/expression-language": "^4.3|^5.0", + "symfony/framework-bundle": "^4.3|^5.0" }, "require-dev": { "phpunit/phpunit": "^7.5", - "symfony/symfony": "^4.3" + "symfony/symfony": "^4.3|^5.0" }, "autoload": { diff --git a/src/Command/PsyshCommand.php b/src/Command/PsyshCommand.php index ca1b19f..b58d9b0 100644 --- a/src/Command/PsyshCommand.php +++ b/src/Command/PsyshCommand.php @@ -51,6 +51,6 @@ protected function configure() */ protected function execute(InputInterface $input, OutputInterface $output) { - $this->shell->run(); + return $this->shell->run(); } } diff --git a/tests/Command/PsyshCommandUnitTest.php b/tests/Command/PsyshCommandUnitTest.php index b9f718d..34e401e 100644 --- a/tests/Command/PsyshCommandUnitTest.php +++ b/tests/Command/PsyshCommandUnitTest.php @@ -43,7 +43,7 @@ public function testConfiguration() public function testExecute() { $shellProphecy = $this->prophesize(Shell::class); - $shellProphecy->run()->shouldBeCalled(); + $shellProphecy->run()->shouldBeCalled()->willReturn(1); /* @var Shell $shell */ $shell = $shellProphecy->reveal();