-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #194 from facile-it/pass-through
Pass through
- Loading branch information
Showing
9 changed files
with
78 additions
and
16 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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Paraunit\Configuration; | ||
|
||
class PassThrough | ||
{ | ||
/** @var list<string> */ | ||
public readonly array $options; | ||
|
||
/** | ||
* @param string[]|null $options | ||
*/ | ||
public function __construct(?array $options = []) | ||
{ | ||
$this->options = array_values($options ?? []); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--TEST-- | ||
Execute the run command with the --pass-through option | ||
--FILE-- | ||
<?php | ||
|
||
require_once __DIR__ . '/../../src/Bin/paraunit'; | ||
--ARGS-- | ||
run IntentionalWarningTestStub -c tests/Stub/phpunit_for_stubs.xml --pass-through=--stop-on-warning | ||
--EXPECTF-- | ||
PARAUNIT v%s | ||
by Francesco Panina, Alessandro Lai & Shark Dev Team @ Facile.it | ||
W %w 1 | ||
|
||
|
||
Execution time -- 00:00:%d | ||
|
||
Executed: 1 test classes, 1 tests | ||
|
||
Warnings output: | ||
|
||
1) Tests\Stub\IntentionalWarningTestStub::testWithIntentionalWarning | ||
This is an intentional warning | ||
|
||
1 files with WARNINGS: | ||
Tests\Stub\IntentionalWarningTestStub::testWithIntentionalWarning |
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