Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 69232df

Browse files
author
Dylan Lacey
committed
Change Untoward to Unexpected on 400 errors.
Let's be more friendly to non-native English speakers (and people not from 1920).
1 parent bfd5988 commit 69232df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PHPUnit/Extensions/Selenium2TestCase/Driver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* Redistribution and use in source and binary forms, with or without
99
* modification, are permitted provided that the following conditions
10-
* are met:
10+
* are met:u
1111
*
1212
* * Redistributions of source code must retain the above copyright
1313
* notice, this list of conditions and the following disclaimer.
@@ -133,7 +133,7 @@ public function curl($http_method,
133133
throw new BadMethodCallException("The command $url is not recognized by the server.");
134134
}
135135
if (($info['http_code'] >= 400) && ($info['http_code'] < 500)) {
136-
throw new BadMethodCallException("Something untoward happened: '$rawResponse'");
136+
throw new BadMethodCallException("Something unexpected happened: '$rawResponse'");
137137
}
138138
curl_close($curl);
139139
$content = json_decode($rawResponse, TRUE);

0 commit comments

Comments
 (0)