Skip to content

Commit

Permalink
change method name to withOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
David Hemphill committed Mar 11, 2018
1 parent 853cef8 commit c95d154
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Zttp.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static function new(...$args)
return new self(...$args);
}

function configure($options)
function withOptions($options)
{
return tap($this, function ($request) use ($options) {
return $this->options = array_merge_recursive($this->options, $options);
Expand Down
4 changes: 2 additions & 2 deletions tests/ZttpTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ function query_parameters_in_urls_can_be_combined_with_array_parameters()
}

/** @test */
function configuration_can_be_set_all_at_once()
function options_can_be_set_all_at_once()
{
$response = Zttp::configure([
$response = Zttp::withOptions([
'headers' => [
'accept' => ['text/xml'],
]
Expand Down

0 comments on commit c95d154

Please sign in to comment.