Commit c6f65d2e authored by Dries's avatar Dries
Browse files

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

parent 2651654d
......@@ -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.
......
......@@ -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>.');
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment