mirror of
https://github.com/Respect/Validation.git
synced 2024-06-20 14:35:06 +02:00
Remove extra tests for "Bsn" rule
There is already a test for this rule, therefore there is no need for those 3 extra ones. Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
This commit is contained in:
parent
1f6c821fb6
commit
6bcfba29d2
|
@ -1,14 +0,0 @@
|
|||
--CREDITS--
|
||||
William Espindola <oi@williamespindola.com.br>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
require 'vendor/autoload.php';
|
||||
|
||||
use Respect\Validation\Validator as v;
|
||||
|
||||
v::bsn()->check('612890053');
|
||||
?>
|
||||
--EXPECT--
|
|
@ -1,21 +0,0 @@
|
|||
--CREDITS--
|
||||
Henrique Moody <henriquemoody@gmail.com>
|
||||
William Espindola <oi@williamespindola.com.br>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
require 'vendor/autoload.php';
|
||||
|
||||
use Respect\Validation\Exceptions\BsnException;
|
||||
use Respect\Validation\Validator as v;
|
||||
|
||||
try {
|
||||
v::bsn()->check('acb');
|
||||
} catch (BsnException $e) {
|
||||
echo $e->getMessage();
|
||||
}
|
||||
?>
|
||||
--EXPECT--
|
||||
"acb" must be a BSN
|
|
@ -1,21 +0,0 @@
|
|||
--CREDITS--
|
||||
Henrique Moody <henriquemoody@gmail.com>
|
||||
William Espindola <oi@williamespindola.com.br>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
require 'vendor/autoload.php';
|
||||
|
||||
use Respect\Validation\Exceptions\BsnException;
|
||||
use Respect\Validation\Validator as v;
|
||||
|
||||
try {
|
||||
v::bsn()->check(null);
|
||||
} catch (BsnException $e) {
|
||||
echo $e->getMessage();
|
||||
}
|
||||
?>
|
||||
--EXPECT--
|
||||
`NULL` must be a BSN
|
Loading…
Reference in a new issue