Skip to content

Commit

Permalink
Failing test case to expose zendframework#41
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlundrigan committed Oct 27, 2015
1 parent 9ccac57 commit 47c9dee
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/ArrayUtilsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -542,4 +542,15 @@ public function testInvalidCallableRaiseInvalidArgumentException()
{
ArrayUtils::filter([], "INVALID");
}

/**
* @see https://github.com/zendframework/zend-stdlib/issues/41
*/
public function testInArrayFunctionCallShouldAlwaysBeStrictToPreventStringMatchingIssues()
{
$needle = '1.10';
$haystack = ['1.1'];

$this->assertFalse(ArrayUtils::inArray($needle, $haystack));
}
}

0 comments on commit 47c9dee

Please sign in to comment.