-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
declare (strict_types=1); | ||
|
||
/** | ||
* \DragonBe\Vies | ||
* | ||
* @author Paweł Krzaczkowski <krzaczek+github@gmail.com> | ||
* @license MIT | ||
*/ | ||
|
||
namespace DragonBe\Vies\Validator; | ||
|
||
/** | ||
* Class ValidatorEU | ||
* @package DragonBe\Vies\Validator | ||
*/ | ||
class ValidatorEU extends ValidatorAbstract | ||
{ | ||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function validate(string $vatNumber): bool | ||
{ | ||
return false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
declare (strict_types=1); | ||
|
||
namespace DragonBe\Test\Vies\Validator; | ||
|
||
class ValidatorEUTest extends AbstractValidatorTest | ||
{ | ||
/** | ||
* @covers \DragonBe\Vies\Validator\ValidatorEU | ||
* @dataProvider vatNumberProvider | ||
*/ | ||
public function testValidator(string $vatNumber, bool $state) | ||
{ | ||
$this->validateVatNumber('EU', $vatNumber, $state); | ||
} | ||
|
||
public function vatNumberProvider() | ||
{ | ||
return [ | ||
['372009975', false], | ||
['826409867', false], | ||
['528003555', false], | ||
]; | ||
} | ||
} |