assertEquals($result, Security::compareStrings($expected, $actual)); } /** * @return array */ public function dataProvider() { return [ ['a@fzsd434sdfqw24', 'a@fzsd434sdfqw24', true], ['a@fzsd4343432432drfsffe2w24', 'a@fzsd434sdfqw24', false], ['0x123', '0x123', true], [0x123, 0x123, true], ['0x123', '0x11', false], ]; } }