---
title: "testUnknownCommand(with:expectedValues:expectedValueInterval:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclustertestcluster/testunknowncommand(with:expectedvalues:expectedvalueinterval:completionhandler:)"
---

# testUnknownCommand(with:expectedValues:expectedValueInterval:completionHandler:)

## Declaration

```swift
func testUnknownCommand(with params: MTRTestClusterClusterTestUnknownCommandParams?, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?, completionHandler: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func testUnknownCommand(with params: MTRTestClusterClusterTestUnknownCommandParams?, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?) async throws
```
