Example #1
0
 /**
  * @throws InvalidSensorException
  */
 public function testSensorNotFoundException()
 {
     self::setExpectedException(InvalidSensorException::class);
     Sensors::getSensor('WindowsWOW', 1);
 }
Example #2
0
 /**
  * @param $name
  * @param $groupId
  * @return array
  * @throws InvalidSensorException
  */
 protected function getSensor($name, $groupId)
 {
     return Sensors::getSensor($name, $groupId);
 }
Example #3
0
 /**
  * @throws \CBApi\Sensors\Exception\InvalidSensorException
  */
 public function testSensorFound()
 {
     self::assertTrue(is_string(Sensors::getSensor('WindowsEXE', 1)));
 }