com php-src: Fixed test: ext/snmp/tests/snmp-object-error.phpt

From: Date: Mon, 06 Apr 2015 19:07:18 +0000
Subject: com php-src: Fixed test: ext/snmp/tests/snmp-object-error.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-86107@lists.php.net to get a copy of this message
Commit: 1cfc9db0d642efffb49e1668db860c7030d7d14f Author: Dmitry Stogov <dmitry@zend.com> Mon, 6 Apr 2015 22:07:18 +0300 Parents: 5820be029ae4c9494d21766ef923b661cb06a7ef Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1cfc9db0d642efffb49e1668db860c7030d7d14f Log: Fixed test Changed paths: M ext/snmp/tests/snmp-object-error.phpt Diff: diff --git a/ext/snmp/tests/snmp-object-error.phpt b/ext/snmp/tests/snmp-object-error.phpt index 29e0198..e257487 100644 --- a/ext/snmp/tests/snmp-object-error.phpt +++ b/ext/snmp/tests/snmp-object-error.phpt @@ -15,22 +15,22 @@ snmp_set_quick_print(false); snmp_set_valueretrieval(SNMP_VALUE_PLAIN); try { -var_dump(new SNMP(SNMP::VERSION_1, $hostname)); -} catch (Exception $e) { + var_dump(new SNMP(SNMP::VERSION_1, $hostname)); +} catch (TypeException $e) { print $e->getMessage() . "\n"; } try { -var_dump(new SNMP(SNMP::VERSION_1, $hostname, $community, '')); -} catch (Exception $e) { + var_dump(new SNMP(SNMP::VERSION_1, $hostname, $community, '')); +} catch (TypeException $e) { print $e->getMessage() . "\n"; } try { -var_dump(new SNMP(SNMP::VERSION_1, $hostname, $community, $timeout, '')); -} catch (Exception $e) { + var_dump(new SNMP(SNMP::VERSION_1, $hostname, $community, $timeout, '')); +} catch (TypeException $e) { print $e->getMessage() . "\n"; } try { -var_dump(new SNMP(7, $hostname, $community)); + var_dump(new SNMP(7, $hostname, $community)); } catch (Exception $e) { print $e->getMessage() . "\n"; }

« previous php.cvs (#86107) next »