getDevice() 공개 메소드

Get a single engine data array
public getDevice ( string $device ) : Device
$device string
리턴 Device
예제 #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');
 }