1
0
mirror of https://github.com/danielstjules/Stringy.git synced 2025-08-08 22:36:32 +02:00

Merge and fix containsAll

This commit is contained in:
Daniel St. Jules
2014-09-27 09:07:37 -07:00
5 changed files with 121 additions and 16 deletions

View File

@@ -296,6 +296,17 @@ class StaticStringyTestCase extends CommonTest
$this->assertEquals($expected, $result);
}
/**
* @dataProvider containsAllProvider()
*/
public function testContainsAll($expected, $haystack, $needles,
$caseSensitive = true, $encoding = null)
{
$result = S::containsAll($haystack, $needles, $caseSensitive, $encoding);
$this->assertInternalType('boolean', $result);
$this->assertEquals($expected, $result);
}
/**
* @dataProvider surroundProvider()
*/