---
title: "testNullableOptionalRequest(with:expectedValues:expectedValueInterval:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclusterunittesting/testnullableoptionalrequest(with:expectedvalues:expectedvalueinterval:completion:)"
---

# testNullableOptionalRequest(with:expectedValues:expectedValueInterval:completion:)

## Declaration

```swift
func testNullableOptionalRequest(with params: MTRUnitTestingClusterTestNullableOptionalRequestParams?, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?, completion: @escaping @Sendable (MTRUnitTestingClusterTestNullableOptionalResponseParams?, (any Error)?) -> Void)
```

```swift
func testNullableOptionalRequest(with params: MTRUnitTestingClusterTestNullableOptionalRequestParams?, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?) async throws -> MTRUnitTestingClusterTestNullableOptionalResponseParams
```
