Code Duplication    Length = 10-10 lines in 2 locations

src/Expectation/Internal/Assert.php 2 locations

@@ 238-247 (lines=10) @@
235
     * @param bool $checkForObjectIdentity
236
     * @param bool $checkForNonObjectIdentity
237
     */
238
    public function assertContains($needle, $ignoreCase = false, $checkForObjectIdentity = true, $checkForNonObjectIdentity = false) {
239
        $this->callAssertMethod(__FUNCTION__, [
240
            'expected' => $needle,
241
            'additionalParams' => [
242
                $ignoreCase,
243
                $checkForObjectIdentity,
244
                $checkForNonObjectIdentity,
245
            ],
246
        ]);
247
    }
248
249
    /**
250
     * Asserts that a haystack does not contain a needle.
@@ 257-266 (lines=10) @@
254
     * @param bool $checkForObjectIdentity
255
     * @param bool $checkForNonObjectIdentity
256
     */
257
    public function assertNotContains($needle, $ignoreCase = false, $checkForObjectIdentity = true, $checkForNonObjectIdentity = false) {
258
        $this->callAssertMethod(__FUNCTION__, [
259
            'expected' => $needle,
260
            'additionalParams' => [
261
                $ignoreCase,
262
                $checkForObjectIdentity,
263
                $checkForNonObjectIdentity,
264
            ],
265
        ]);
266
    }
267
268
    /**
269
     * Asserts that a haystack contains only values of a given type.