During test execution, all wp_die() calls should throw an exception.

If the wp_die() call is not expected, the test will result in an error. Expected wp_die() calls may be caught with $this->setExpectedException( $exception ), @expectedException, etc. For more, see http://www.phpunit.de/manual/3.8/en/writing-tests-for-phpunit.html#writing-tests-for-phpunit.exceptions.



git-svn-id: https://unit-tests.svn.wordpress.org/trunk@1221 4a5a2adb-35eb-4268-9a1b-fe04a4134342