Skip to content

Commit

Permalink
Fix typos and expand docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Sep 3, 2014
1 parent ac5f98f commit 4b7ccf1
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/TestSuite/IntegrationTestCase.php
Expand Up @@ -48,7 +48,18 @@ class IntegrationTestCase extends TestCase {
*/
protected $_response;

/**
* Session data to use in the next request.
*
* @var array
*/
protected $_session = [];

/**
* Cookie data to use in the next request.
*
* @var array
*/
protected $_cookie = [];

/**
Expand All @@ -65,7 +76,7 @@ public function tearDown() {
}

/**
* Configure the data for tne *next* request.
* Configure the data for the *next* request.
*
* This data is cleared in the tearDown() method.
*
Expand Down Expand Up @@ -286,12 +297,12 @@ protected function _assertStatus($min, $max, $message) {
* Assert that the Location header is correct.
*
* @param string|array $url The url you expected the client to go to. This
* cane either be a string URL or an array compatible with Router::url()
* can either be a string URL or an array compatible with Router::url()
* @return void
*/
public function assertRedirect($url, $message = '') {
if (!$this->_response) {
$this->fail('Not response set, cannot assert location header. ' . $message);
$this->fail('No response set, cannot assert location header. ' . $message);
}
$result = $this->_response->header();
if (empty($result['Location'])) {
Expand Down

0 comments on commit 4b7ccf1

Please sign in to comment.