Skip to content

Commit 3392102

Browse files
Ignore code from code coverage for handling of errors for edge cases that I do not know how to test
1 parent 0fde984 commit 3392102

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Metadata/Api/DataProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,14 @@ private function dataProvidedByMethods(string $className, string $methodName, Me
172172

173173
$result[$key] = $value;
174174
} else {
175+
// @codeCoverageIgnoreStart
175176
throw new InvalidDataProviderException(
176177
sprintf(
177178
'The key must be an integer or a string, %s given',
178179
get_debug_type($key),
179180
),
180181
);
182+
// @codeCoverageIgnoreEnd
181183
}
182184
}
183185
}

0 commit comments

Comments
 (0)