-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
369deb1
commit 48ec7c6
Showing
53 changed files
with
612 additions
and
558 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
<?php | ||
|
||
$header = <<<'HEADER' | ||
This file is part of the Liip/FunctionalTestBundle | ||
(c) Lukas Kahwe Smith <[email protected]> | ||
This source file is subject to the MIT license that is bundled | ||
with this source code in the file LICENSE. | ||
HEADER; | ||
|
||
$finder = PhpCsFixer\Finder::create() | ||
->in(__DIR__) | ||
->notPath('/cache/') | ||
|
@@ -16,6 +25,9 @@ return PhpCsFixer\Config::create() | |
], | ||
'combine_consecutive_issets' => true, | ||
'combine_consecutive_unsets' => true, | ||
'header_comment' => [ | ||
'header' => $header, | ||
], | ||
'no_extra_consecutive_blank_lines' => true, | ||
'no_php4_constructor' => true, | ||
'no_useless_else' => true, | ||
|
@@ -24,6 +36,10 @@ return PhpCsFixer\Config::create() | |
'phpdoc_order' => true, | ||
'@PHP56Migration' => true, | ||
'@PHP56Migration:risky' => true, | ||
'@PHP70Migration' => true, | ||
'@PHP70Migration:risky' => true, | ||
'@PHP71Migration' => true, | ||
'@PHP71Migration:risky' => true, | ||
'strict_comparison' => true, | ||
'strict_param' => true, | ||
'php_unit_strict' => true, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of the Liip/FunctionalTestBundle | ||
* | ||
* (c) Lukas Kahwe Smith <[email protected]> | ||
* | ||
* This source file is subject to the MIT license that is bundled | ||
* with this source code in the file LICENSE. | ||
*/ | ||
|
||
namespace Liip\FunctionalTestBundle\Annotations; | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of the Liip/FunctionalTestBundle | ||
* | ||
* (c) Lukas Kahwe Smith <[email protected]> | ||
* | ||
* This source file is subject to the MIT license that is bundled | ||
* with this source code in the file LICENSE. | ||
*/ | ||
|
||
namespace Liip\FunctionalTestBundle\Command; | ||
|
||
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | ||
|
@@ -26,7 +37,7 @@ class RunParatestCommand extends ContainerAwareCommand | |
/** | ||
* Configuration of the command. | ||
*/ | ||
protected function configure() | ||
protected function configure(): void | ||
{ | ||
$this | ||
->setName('paratest:run') | ||
|
@@ -36,7 +47,7 @@ protected function configure() | |
; | ||
} | ||
|
||
protected function prepare() | ||
protected function prepare(): void | ||
{ | ||
$this->phpunit = $this->getContainer()->getParameter('liip_functional_test.paratest.phpunit'); | ||
$this->process = $this->getContainer()->getParameter('liip_functional_test.paratest.process'); | ||
|
@@ -73,7 +84,7 @@ protected function prepare() | |
* @param InputInterface $input | ||
* @param OutputInterface $output | ||
*/ | ||
protected function execute(InputInterface $input, OutputInterface $output) | ||
protected function execute(InputInterface $input, OutputInterface $output): void | ||
{ | ||
$this->output = $output; | ||
$this->prepare(); | ||
|
@@ -88,7 +99,7 @@ protected function execute(InputInterface $input, OutputInterface $output) | |
'-p '.$this->process.' '. | ||
$input->getArgument('options') | ||
); | ||
$runProcess->run(function ($type, $buffer) use ($output) { | ||
$runProcess->run(function ($type, $buffer) use ($output): void { | ||
$output->write($buffer); | ||
}); | ||
} | ||
|
Oops, something went wrong.