Skip to content

Commit

Permalink
Add options method to IntegrationTestCase
Browse files Browse the repository at this point in the history
  • Loading branch information
Iandenh committed Jun 13, 2017
1 parent 668c087 commit 699a985
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/TestSuite/IntegrationTestCase.php
Expand Up @@ -434,6 +434,21 @@ public function delete($url)
$this->_sendRequest($url, 'DELETE');
}

/**
* Performs an OPTION request using the current request data.
*
* The response of the dispatched request will be stored as
* a property. You can use various assert methods to check the
* response.
*
* @param string|array $url The URL to request.
* @return void
*/
public function options($url)
{
$this->_sendRequest($url, 'OPTIONS');
}

/**
* Creates and send the request into a Dispatcher instance.
*
Expand Down

0 comments on commit 699a985

Please sign in to comment.