Skip to content

Commit 47c9dee

Browse files
committed
Failing test case to expose zendframework#41
1 parent 9ccac57 commit 47c9dee

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/ArrayUtilsTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,4 +542,15 @@ public function testInvalidCallableRaiseInvalidArgumentException()
542542
{
543543
ArrayUtils::filter([], "INVALID");
544544
}
545+
546+
/**
547+
* @see https://github.com/zendframework/zend-stdlib/issues/41
548+
*/
549+
public function testInArrayFunctionCallShouldAlwaysBeStrictToPreventStringMatchingIssues()
550+
{
551+
$needle = '1.10';
552+
$haystack = ['1.1'];
553+
554+
$this->assertFalse(ArrayUtils::inArray($needle, $haystack));
555+
}
545556
}

0 commit comments

Comments
 (0)