Skip to content

Commit

Permalink
Added default null value to $message
Browse files Browse the repository at this point in the history
Added the requested default null value to $message in order to maintain backwards compatibility.
  • Loading branch information
jadedcore committed Oct 19, 2017
1 parent 4acf17f commit ac82547
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/TestSuite/IntegrationTestCase.php
Expand Up @@ -702,7 +702,7 @@ public function viewVariable($name)
*
* @return void
*/
public function assertResponseOk($message)
public function assertResponseOk($message = null)
{
if (empty($message)) {
$message = 'Status code is not between 200 and 204';
Expand All @@ -715,7 +715,7 @@ public function assertResponseOk($message)
*
* @return void
*/
public function assertResponseSuccess($message)
public function assertResponseSuccess($message = null)
{
if (empty($message)) {
$message = 'Status code is not between 200 and 308';
Expand All @@ -728,7 +728,7 @@ public function assertResponseSuccess($message)
*
* @return void
*/
public function assertResponseError($message)
public function assertResponseError($message = null)
{
if (empty($message)) {
$message = 'Status code is not between 400 and 429';
Expand All @@ -741,7 +741,7 @@ public function assertResponseError($message)
*
* @return void
*/
public function assertResponseFailure($message)
public function assertResponseFailure($message = null)
{
if (empty($message)) {
$message = 'Status code is not between 500 and 505';
Expand All @@ -755,7 +755,7 @@ public function assertResponseFailure($message)
* @param int $code Status code to assert.
* @return void
*/
public function assertResponseCode($code, $message)
public function assertResponseCode($code, $message = null)
{
$actual = $this->_response->getStatusCode();

Expand Down

0 comments on commit ac82547

Please sign in to comment.