Skip to content

Commit

Permalink
Revert "removed Assert::throws(), it is replaced by Assert::exception…
Browse files Browse the repository at this point in the history
…() (BC break)"

This reverts commit bc78dd4.
  • Loading branch information
dg committed Jul 20, 2013
1 parent 87fb4ca commit 673058a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Tester/Framework/Assert.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,17 @@ public static function exception($function, $class, $message = NULL)


/**
* Checks if the function generates PHP error or exception.
* Checks if the function throws exception, alias for exception().
* @return Exception
*/
public static function throws($function, $class, $message = NULL)
{
return self::exception($function, $class, $message);
}


/**
* Checks if the function generates PHP error or throws exception.
* @param callable
* @param int|string
* @param string message
Expand Down

0 comments on commit 673058a

Please sign in to comment.