/** * @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'); }