Skip to content
Snippets Groups Projects
Commit d2970598 authored by Martin Krisell's avatar Martin Krisell Committed by Tim van Dijen
Browse files

Update TESTING.md to mention expectException instead of phpdoc annotations. (#1266)

#3d1210 switched from using phpunit annotations to `expectException ()` for asserting expected exceptions, but the documentation still mentions the annotation.
parent 4a37db42
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,7 @@ the ones prefixed with "test". ...@@ -33,7 +33,7 @@ the ones prefixed with "test".
You will usually make use of the `assert*()` methods provided by You will usually make use of the `assert*()` methods provided by
`PHPUnit\Framework\TestCase`, but you can also tell `phpunit` to expect `PHPUnit\Framework\TestCase`, but you can also tell `phpunit` to expect
an exception to be thrown using *phpdoc*. For example, if you want to an exception to be thrown using the `expectException()`-method. For example, if you want to
ensure that the `SimpleSAML\Utils\HTTP::addURLParameters()` method ensure that the `SimpleSAML\Utils\HTTP::addURLParameters()` method
throws an exception in a specific situation: throws an exception in a specific situation:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment