com php-src: Fixed test (shift operators throw Error): tests/lang/operators/bitwiseShiftLeft_variationStr.phpt
| From: | Dmitry Stogov | Date: | Mon, 06 Jul 2015 09:28:14 +0000 |
| Subject: | com php-src: Fixed test (shift operators throw Error): tests/lang/operators/bitwiseShiftLeft_variationStr.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-87757@lists.php.net to get a copy of this message | ||
Commit: 2f7b178fac15e43e28cc0093e0bd4fe12b0f20e6
Author: Dmitry Stogov <dmitry@zend.com> Mon, 6 Jul 2015 12:28:14 +0300
Parents: 7a1a499377781634d0063cf964bd4729846398fa
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2f7b178fac15e43e28cc0093e0bd4fe12b0f20e6
Log:
Fixed test (shift operators throw Error)
Changed paths:
M tests/lang/operators/bitwiseShiftLeft_variationStr.phpt
Diff:
diff --git a/tests/lang/operators/bitwiseShiftLeft_variationStr.phpt
b/tests/lang/operators/bitwiseShiftLeft_variationStr.phpt
index 6a44c5d..0176d90 100644
--- a/tests/lang/operators/bitwiseShiftLeft_variationStr.phpt
+++ b/tests/lang/operators/bitwiseShiftLeft_variationStr.phpt
@@ -19,7 +19,7 @@ foreach ($strVals as $strVal) {
echo "--- testing: '$strVal' << '$otherVal' ---\n";
try {
var_dump(strVal<<$otherVal);
- } catch (Exception $e) {
+ } catch (Throwable $e) {
echo "Exception: " . $e->getMessage() . "\n";
}
}