getDevice() public method

Get a single engine data array
public getDevice ( string $device ) : Device
$device string
return Device
Exemplo n.º 1
0
 /**
  * @expectedException \OutOfBoundsException
  * @expectedExceptionMessage Device "NotExists" does not exist in data, available devices:
  *
  * @group data
  * @group sourcetest
  */
 public function testGetDeviceThrowsExceptionIfDeviceDoesNotExist()
 {
     $this->object->addDevicesFile($this->getDevicesJsonFixture());
     $this->object->getDevice('NotExists');
 }