|
From: Mark R. <co...@gm...> - 2011-05-18 08:19:40
|
Hi Kasper, expectException is the method you want to use: http://www.simpletest.org/api/SimpleTest/UnitTester/UnitTestCase.html#expectException These examples show how it is used in real code: https://github.com/maetl/floe/blob/master/tests/server.test.php#L166 http://code.google.com/p/blip-php/source/browse/trunk/+blip-php/Blip-PHP/test/upload_test_cases.php?r=9#57 https://gitorious.org/htmlpurifier/mainline/blobs/master/tests/HTMLPurifier/LexerTest.php#line45 Hope that helps, Mark |