/** * @dataProvider alphanumDataProvider */ public function testAlphaNum($expected, $value, $allowSpaces = false, $allowDashes = false) { $this->assertEquals($expected, $this->object->alphanum($value, $allowSpaces, $allowDashes)); }