Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

Commit

Permalink
Restore SystemContext::ouputShouldNotContain deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
sanpii committed Nov 8, 2017
1 parent ea51e95 commit fc41c07
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Context/SystemContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,16 @@ public function outputShouldContain($text)
}
}


public function ouputShouldNotContain($text)
{
trigger_error(
sprintf('The %s function is deprecated since version 2.8 and will be removed in 3.0. Use the %s::outputShouldNotContain function instead.', __METHOD__, __CLASS__),
E_USER_DEPRECATED
);
$this->outputShouldNotContain($text);
}

/**
* Checks, that output not contains specified text.
*
Expand Down

0 comments on commit fc41c07

Please sign in to comment.