Skip to content

Commit

Permalink
Allow to pass variables/arrays to options #11
Browse files Browse the repository at this point in the history
  • Loading branch information
robertfausk committed Sep 17, 2022
1 parent 679a51a commit c6840e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ServiceContainer/PantherConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function addOptionsNode(): ArrayNodeDefinition
"These are the options passed as first argument to PantherTestCaseTrait::createPantherClient client constructor."
)
->ignoreExtraKeys()
->scalarPrototype()
->variablePrototype()
->end()
;

Expand Down
3 changes: 2 additions & 1 deletion tests/Unit/PantherConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,12 @@ public function test_processed_configuration(): void
{
$this->assertProcessedConfigurationEquals(
[
['options' => ['hostname' => '127.0.0.1']],
['options' => ['hostname' => '127.0.0.1', 'env' => ['APP_ENV' => 'dev']]],
],
[
'options' => [
'hostname' => '127.0.0.1',
'env' => ['APP_ENV' => 'dev'],
],
'kernel_options' => [],
'manager_options' => [],
Expand Down

0 comments on commit c6840e5

Please sign in to comment.