/** * @dataProvider containsFileTypeProvider * * @param string $toScan The directory to be scanned. * @param string|array $types The types to check for e.g. 'php', 'js', ... * @param boolean $recursive Whether or not to check recursively in the directory. * @param boolean $expectedResult The expected result of the containsFileType helper method. */ public function testContainsFileType($toScan, $types, $recursive, $expectedResult) { $this->assertSame($expectedResult, helpers_File::containsFileType($toScan, $types, $recursive)); }