Skip to content

Commit

Permalink
Fix test_build_driver_without_options Refs #3 Refs #1
Browse files Browse the repository at this point in the history
  • Loading branch information
robertfausk committed Mar 29, 2020
1 parent 13cf163 commit 44ba5f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function buildDriver(array $config)
return new Definition(
'Behat\Mink\Driver\PantherDriver',
array(
$config['options']
$config['options'] ?? [],
)
);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Driver/PantherFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@ public function test_build_driver_without_options(): void
$arguments = $definition->getArguments();

$this->assertArrayHasKey(0, $arguments, 'Arguments of definition should not be empty.');
$this->assertSame(null, $arguments[0]);
$this->assertSame([], $arguments[0]);
}
}

0 comments on commit 44ba5f7

Please sign in to comment.