Update validation for multiple CSV files. #93
Annotations
4 errors
|
🧪 PHPUnit Tests:
tests/Blueprint/MiscTest.php#L132
JBZoo\PHPUnit\Blueprint\MiscTest::testFindFiles
Failed asserting that two arrays are identical.
--- Expected
+++ Actual
@@ @@
Array &0 (
- 0 => 'demo-3.csv'
+ 0 => 'demo-1.csv'
1 => 'demo-2.csv'
- 2 => 'demo-1.csv'
+ 2 => 'demo-3.csv'
)
vendor/jbzoo/phpunit/src/functions/aliases.php:129
tests/Blueprint/MiscTest.php:143
|
🧪 PHPUnit Tests:
tests/Blueprint/CommandsTest.php#L103
JBZoo\PHPUnit\Blueprint\CommandsTest::testCreateValidateNegativeMultiple
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'CSV : ./tests/fixtures/batch/sub/demo-3.csv
+'CSV : ./tests/fixtures/batch/demo-1.csv
CSV : ./tests/fixtures/batch/demo-2.csv
-CSV : ./tests/fixtures/batch/demo-1.csv
+CSV : ./tests/fixtures/batch/sub/demo-3.csv
Schema : ./tests/schemas/demo_invalid.yml
++------+------------------+--------------+ demo-1.csv ------------------------------------------+
+| Line | id:Column | Rule | Message |
++------+------------------+--------------+------------------------------------------------------+
+| 3 | 2:Float | max | Value "74605.944" is greater than "74605" |
+| 3 | 4:Favorite color | allow_values | Value "blue" is not allowed. Allowed values: ["red", |
+| | | | "green", "Blue"] |
++------+------------------+--------------+ demo-1.csv ------------------------------------------+
+
+------+------------+------------+----- demo-2.csv ---------------------------------------+
| Line | id:Column | Rule | Message |
+------+------------+------------+--------------------------------------------------------+
@@ @@
| | | | "2009-01-01T00:00:00.000+00:00" |
| 7 | 0:Name | min_length | Value "Lois" (length: 4) is too short. Min length is 5 |
+------+------------+------------+----- demo-2.csv ---------------------------------------+
-
-+------+------------------+--------------+ demo-1.csv ------------------------------------------+
-| Line | id:Column | Rule | Message |
-+------+------------------+--------------+------------------------------------------------------+
-| 3 | 2:Float | max | Value "74605.944" is greater than "74605" |
-| 3 | 4:Favorite color | allow_values | Value "blue" is not allowed. Allowed values: ["red", |
-| | | | "green", "Blue"] |
-+------+------------------+--------------+ demo-1.csv ------------------------------------------+
Found 7 issues in 2 out of 3 CSV files.
'
vendor/jbzoo/phpunit/src/functions/aliases.php:129
tests/Blueprint/CommandsTest.php:148
|
🧪 PHPUnit Tests
The operation was canceled.
|
The logs for this run have expired and are no longer available.
Loading