Apply coding standard fixes

This commit is contained in:
Kamil Kokot
2019-01-09 23:47:50 +01:00
parent 6061eaaf62
commit 05f4fe789f
2 changed files with 7 additions and 24 deletions

View File

@@ -5,7 +5,6 @@ declare(strict_types=1);
namespace FriendsOfBehat\SymfonyExtension\Driver; namespace FriendsOfBehat\SymfonyExtension\Driver;
use Behat\Mink\Driver\BrowserKitDriver; use Behat\Mink\Driver\BrowserKitDriver;
use Symfony\Component\BrowserKit\Client;
use Symfony\Component\HttpKernel\KernelInterface; use Symfony\Component\HttpKernel\KernelInterface;
final class SymfonyDriver extends BrowserKitDriver final class SymfonyDriver extends BrowserKitDriver

View File

@@ -12,24 +12,16 @@ use Symfony\Component\Yaml\Yaml;
final class TestContext implements Context final class TestContext implements Context
{ {
/** /** @var string */
* @var string
*/
private static $workingDir; private static $workingDir;
/** /** @var Filesystem */
* @var Filesystem
*/
private static $filesystem; private static $filesystem;
/** /** @var string */
* @var string
*/
private static $phpBin; private static $phpBin;
/** /** @var Process */
* @var Process
*/
private $process; private $process;
/** /**
@@ -201,7 +193,7 @@ CON
} }
throw new \DomainException( 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( 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) { if (0 === $result) {
throw new \DomainException(sprintf( 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, $pattern,
$output $output
)); ));
} }
} }
/**
* @return string
*/
private function getProcessOutput(): string private function getProcessOutput(): string
{ {
$this->assertProcessIsAvailable(); $this->assertProcessIsAvailable();
@@ -277,9 +266,6 @@ CON
return $this->process->getErrorOutput() . $this->process->getOutput(); return $this->process->getErrorOutput() . $this->process->getOutput();
} }
/**
* @return int
*/
private function getProcessExitCode(): int private function getProcessExitCode(): int
{ {
$this->assertProcessIsAvailable(); $this->assertProcessIsAvailable();
@@ -298,8 +284,6 @@ CON
} }
/** /**
* @return string
*
* @throws \RuntimeException * @throws \RuntimeException
*/ */
private static function findPhpBinary(): string private static function findPhpBinary(): string