MCPcopy Create free account
hub / github.com/apple/coremltools / assertStringContains

Method assertStringContains

deps/protobuf/php/tests/test_base.php:18–25  ·  view source on GitHub ↗

* Polyfill for phpunit6. */

($needle, $haystack)

Source from the content-addressed store, hash-verified

16 * Polyfill for phpunit6.
17 */
18 static public function assertStringContains($needle, $haystack)
19 {
20 if (function_exists('PHPUnit\Framework\assertStringContainsString')) {
21 parent::assertStringContainsString($needle, $haystack);
22 } else {
23 parent::assertContains($needle, $haystack);
24 }
25 }
26
27 /**
28 * Polyfill for phpunit6.

Calls

no outgoing calls

Tested by

no test coverage detected