/** * @test * @dataProvider cleanIntArrayDataProvider * @param array $exampleData The array to sanitize * @param array $expectedResult The expected result * @return void */ public function cleanIntArray($exampleData, $expectedResult) { /** @var \TYPO3\CMS\Core\Database\DatabaseConnection $subject */ $subject = new \TYPO3\CMS\Core\Database\DatabaseConnection(); $sanitizedArray = $subject->cleanIntArray($exampleData); $this->assertEquals($expectedResult, $sanitizedArray); }