- Patch #871068 by cwgordon7: 'catched' to 'caught'.

merge-requests/26/head
Dries Buytaert 2010-08-01 23:35:01 +00:00
parent 2651654d09
commit c6f65d2e59
2 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@ class SimpleTestFunctionalTest extends DrupalWebTestCase {
$this->assertAssertion(t('Created permissions: @perms', array('@perms' => $this->valid_permission)), 'Role', 'Pass', 'simpletest.test', 'SimpleTestFunctionalTest->stubTest()');
$this->assertAssertion(t('Invalid permission %permission.', array('%permission' => $this->invalid_permission)), 'Role', 'Fail', 'simpletest.test', 'SimpleTestFunctionalTest->stubTest()');
// Check that a warning is catched by simpletest.
// Check that a warning is caught by simpletest.
$this->assertAssertion('Division by zero', 'Warning', 'Fail', 'simpletest.test', 'SimpleTestFunctionalTest->stubTest()');
// Check that the backtracing code works for specific assert function.

View File

@ -306,7 +306,7 @@ function _system_test_second_shutdown_function($arg1, $arg2) {
// Throw an exception with an HTML tag. Since this is called in a shutdown
// function, it will not bubble up to the default exception handler but will
// be catched in _drupal_shutdown_function() and be displayed through
// be caught in _drupal_shutdown_function() and be displayed through
// _drupal_render_exception_safe().
throw new Exception('Drupal is <blink>awesome</blink>.');
}