assertTrue($this->validate(self::RULE, $input)); } public function successProvider() { return [ ['6 Avondans Road'], ['Calle MediterrĂ¡neo 2'], ['c/MediterrĂ¡neo 2'], ]; } /** * @dataProvider errorProvider */ public function testError($input) { $this->assertNotTrue($this->validate(self::RULE, $input)); } public function errorProvider() { return [ [ 'Avondans Road' ], [ 'text' ], ]; } public function testWhenInputIsEmptyAndNotRequiredIsSuccess() { $this->assertTrue($this->validate(self::RULE, '')); } }