From 05f4fe789f41e6c708a57779f9d44c6b0e134fda Mon Sep 17 00:00:00 2001 From: Kamil Kokot Date: Wed, 9 Jan 2019 23:47:50 +0100 Subject: [PATCH] Apply coding standard fixes --- src/Driver/SymfonyDriver.php | 1 - tests/Behat/Context/TestContext.php | 30 +++++++---------------------- 2 files changed, 7 insertions(+), 24 deletions(-) diff --git a/src/Driver/SymfonyDriver.php b/src/Driver/SymfonyDriver.php index e2d1d26..a44c6de 100644 --- a/src/Driver/SymfonyDriver.php +++ b/src/Driver/SymfonyDriver.php @@ -5,7 +5,6 @@ declare(strict_types=1); namespace FriendsOfBehat\SymfonyExtension\Driver; use Behat\Mink\Driver\BrowserKitDriver; -use Symfony\Component\BrowserKit\Client; use Symfony\Component\HttpKernel\KernelInterface; final class SymfonyDriver extends BrowserKitDriver diff --git a/tests/Behat/Context/TestContext.php b/tests/Behat/Context/TestContext.php index 95e91d9..e660e75 100644 --- a/tests/Behat/Context/TestContext.php +++ b/tests/Behat/Context/TestContext.php @@ -12,24 +12,16 @@ use Symfony\Component\Yaml\Yaml; final class TestContext implements Context { - /** - * @var string - */ + /** @var string */ private static $workingDir; - /** - * @var Filesystem - */ + /** @var Filesystem */ private static $filesystem; - /** - * @var string - */ + /** @var string */ private static $phpBin; - /** - * @var Process - */ + /** @var Process */ private $process; /** @@ -201,7 +193,7 @@ CON } throw new \DomainException( - 'Behat was expecting to pass, but failed with the following output:' . PHP_EOL . PHP_EOL . $this->getProcessOutput() + 'Behat was expecting to pass, but failed with the following output:' . \PHP_EOL . \PHP_EOL . $this->getProcessOutput() ); } @@ -224,7 +216,7 @@ CON } throw new \DomainException( - 'Behat was expecting to fail, but passed with the following output:' . PHP_EOL . PHP_EOL . $this->getProcessOutput() + 'Behat was expecting to fail, but passed with the following output:' . \PHP_EOL . \PHP_EOL . $this->getProcessOutput() ); } @@ -260,16 +252,13 @@ CON if (0 === $result) { throw new \DomainException(sprintf( - 'Pattern "%s" does not match the following output:' . PHP_EOL . PHP_EOL . '%s', + 'Pattern "%s" does not match the following output:' . \PHP_EOL . \PHP_EOL . '%s', $pattern, $output )); } } - /** - * @return string - */ private function getProcessOutput(): string { $this->assertProcessIsAvailable(); @@ -277,9 +266,6 @@ CON return $this->process->getErrorOutput() . $this->process->getOutput(); } - /** - * @return int - */ private function getProcessExitCode(): int { $this->assertProcessIsAvailable(); @@ -298,8 +284,6 @@ CON } /** - * @return string - * * @throws \RuntimeException */ private static function findPhpBinary(): string