Skip to content

Commit 42035b1

Browse files
author
Carlos Garcia
committed
Corregidos fallos en el test de Vies.
1 parent b6ad6b8 commit 42035b1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Test/Core/Lib/ViesTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* This file is part of FacturaScripts
4-
* Copyright (C) 2023-2024 Carlos Garcia Gomez <carlos@facturascripts.com>
4+
* Copyright (C) 2023-2026 Carlos Garcia Gomez <carlos@facturascripts.com>
55
*
66
* This program is free software: you can redistribute it and/or modify
77
* it under the terms of the GNU Lesser General Public License as
@@ -31,9 +31,9 @@ public function testCheck(): void
3131
['results' => -1, 'number' => '123', 'iso' => ''],
3232
['results' => 0, 'number' => '123456789', 'iso' => 'ES'],
3333
['results' => 0, 'number' => 'ES74003828J', 'iso' => 'ES'],
34-
['results' => 1, 'number' => 'ES74003828V', 'iso' => 'ES'],
35-
['results' => 1, 'number' => '74003828V', 'iso' => 'ES'],
34+
['results' => 1, 'number' => 'ES75897326V', 'iso' => 'ES'],
3635
['results' => 1, 'number' => '43834596223', 'iso' => 'FR'],
36+
['results' => 1, 'number' => 'FR38821737384', 'iso' => 'FR'],
3737
['results' => 0, 'number' => '81328757100011', 'iso' => 'FR'],
3838
['results' => 1, 'number' => '514356480', 'iso' => 'PT'],
3939
['results' => 1, 'number' => '513969144', 'iso' => 'PT'],
@@ -47,7 +47,7 @@ public function testCheck(): void
4747
$this->markTestSkipped('Vies service returns error: ' . Vies::getLastError());
4848
}
4949

50-
$this->assertEquals($item['results'], $check);
50+
$this->assertEquals($item['results'], $check, 'Vies::check(' . $item['number'] . ', ' . $item['iso'] . ') returned ' . $check . ', expected ' . $item['results']);
5151

5252
// esperamos medio segundo para no saturar el servicio
5353
usleep(500000);

0 commit comments

Comments
 (0)