Skip to content

Commit

Permalink
Amended the parameters to be backwards compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
viraj-khatavkar committed Jul 19, 2017
1 parent 4395856 commit a37b171
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/TestSuite/IntegrationTestCase.php
Expand Up @@ -916,7 +916,7 @@ public function assertResponseEquals($content, $message = '')
* @param bool $ignoreCase A flag to check whether we should ignore case or not.
* @return void
*/
public function assertResponseContains($content, $ignoreCase = false, $message = '')
public function assertResponseContains($content, $message = '', $ignoreCase = false)
{
if (!$this->_response) {
$this->fail('No response set, cannot assert content. ' . $message);
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/TestSuite/IntegrationTestCaseTest.php
Expand Up @@ -837,7 +837,7 @@ public function testAssertResponseContainsWithIgnoreCaseFlag()
$this->_response = new Response();
$this->_response = $this->_response->withStringBody('Some content');

$this->assertResponseContains('some', true);
$this->assertResponseContains('some', 'Failed asserting that the body contains given content', true);
}

/**
Expand Down

0 comments on commit a37b171

Please sign in to comment.