Fix bad snmp context option (#13497)

* Fix bad snmp context option
Just port queries to SnmpQuery and remove bad code to prevent new usages

* Allow unordered

* add stub on Mock
This commit is contained in:
Tony Murray
2021-11-12 12:40:37 -06:00
committed by GitHub
parent 6b41c29f5f
commit 666638eeaa
7 changed files with 50 additions and 30 deletions

View File

@@ -106,6 +106,11 @@ class SnmpQueryMock implements SnmpQueryInterface
->translate($oid, $mib);
}
public function allowUnordered(): SnmpQueryInterface
{
return $this;
}
public function numeric(): SnmpQueryInterface
{
$this->numeric = true;