protected function LocationTestCase::error in Location 6.3
Fire an error assertion.
Parameters
$message: The message to display along with the assertion.
$group: The type of assertion - examples are "Browser", "PHP".
$caller: The caller of the error.
Return value
FALSE.
Overrides DrupalTestCase::error
1 call to LocationTestCase::error()
- LocationGoogleGeocoderTest::error in tests/
google_geocoder.test - Fire an error assertion.
1 method overrides LocationTestCase::error()
- LocationGoogleGeocoderTest::error in tests/
google_geocoder.test - Fire an error assertion.
File
- tests/
location_testcase.php, line 11 - Common functions for Location tests.
Class
- LocationTestCase
- @file Common functions for Location tests.
Code
protected function error($message = '', $group = 'Other', array $caller = NULL) {
if ($message == 'Undefined variable: location') {
// change error (Notice) to debug message
return $this
->assert('debug', $message, 'Debug', $caller);
}
if ($message == 'Undefined property: stdClass::$locations') {
// change error (Notice) to debug message
return $this
->assert('debug', $message, 'Debug', $caller);
}
return parent::error($message, $group, $caller);
}