assertEquals($checksum, TCNo::checksum($tcNo), $tcNo); } public function validatorProvider() { return array( array('22978160678', true), array('26480045324', true), array('47278360658', true), array('34285002510', true), array('19874561012', true), array('11111111111', false), array('11234567899', false), ); } /** * @dataProvider validatorProvider * @param $tcNo * @param $isValid */ public function testIsValid($tcNo, $isValid) { $this->assertEquals($isValid, TCNo::isValid($tcNo), $tcNo); } }