/** * Method to test makeSafe(). * * @param string $name The name of the file to test filtering of * @param array $stripChars Whether to filter spaces out the name or not * @param string $expected The expected safe file name * @param string $message The message to show on failure of test * * @return void * * @covers Windwalker\Filesystem\File::makeSafe * * @dataProvider dataTestMakeSafe */ public function testMakeSafe($name, $stripChars, $expected, $message) { $this->assertEquals(File::makeSafe($name, $stripChars), $expected, $message); }