Skip to content

Init

Init #7

Triggered via pull request March 10, 2024 20:39
@SmetDenisSmetDenis
synchronize #1
init
Status Failure
Total duration 33s
Artifacts 3

main.yml

on: pull_request
Matrix: Linters
Matrix: PHPUnit
Matrix: Reports
Fit to window
Zoom out
Zoom in

Annotations

98 errors and 5 warnings
PHPUnit (8.1, xdebug): tests/Blueprint/MiscTest.php#L112
JBZoo\PHPUnit\Blueprint\MiscTest::testCheckJsonSchemaExampleInReadme The file doesn't contain expected text. See: README.md Expected text: -------------------------------------------------------------------------------- <details> <summary>Click to see: JSON Format</summary> ```json { "csv_structure" : { "header" : true, "delimiter" : ",", "quote_char" : "\\", "enclosure" : "\"", "encoding" : "utf-8", "bom" : false }, "columns" : [ { "name" : "csv_header_name", "description" : "Lorem ipsum", "rules" : { "not_empty" : true, "exact_value" : "Some string", "allow_values" : ["y", "n", ""], "regex" : "\/^[\\d]{2}$\/", "min_length" : 1, "max_length" : 10, "only_trimed" : true, "only_lowercase" : true, "only_uppercase" : true, "only_capitalize" : true, "min" : 10, "max" : 100.5, "precision" : 2, "date_format" : "Y-m-d", "min_date" : "2000-01-02", "max_date" : "+1 day", "is_bool" : true, "is_int" : true, "is_float" : true, "is_ip" : true, "is_url" : true, "is_email" : true, "is_domain" : true, "is_uuid4" : true, "is_latitude" : true, "is_longitude" : true, "cardinal_direction" : true, "usa_market_name" : true } } ] } ``` </details> -------------------------------------------------------------------------------- Failed asserting that false is true. vendor/jbzoo/phpunit/src/functions/aliases.php:79 vendor/jbzoo/phpunit/src/functions/aliases.php:439 tests/Blueprint/MiscTest.php:150 tests/Blueprint/MiscTest.php:114
PHPUnit (8.1, xdebug): tests/Blueprint/MiscTest.php#L97
JBZoo\PHPUnit\Blueprint\MiscTest::testCheckYmlSchemaExampleInReadme The file doesn't contain expected text. See: README.md Expected text: -------------------------------------------------------------------------------- <details> <summary>Click to see: YAML format (with comment)</summary> ```yml # It's a full example of the CSV schema file in YAML format. csv_structure: # Here are default values. You can skip this section if you don't need to override the default values header: true # If the first row is a header. If true, name of each column is required delimiter: , # Delimiter character in CSV file quote_char: \ # Quote character in CSV file enclosure: "\"" # Enclosure for each field in CSV file encoding: utf-8 # Only utf-8, utf-16, utf-32 (Experimental) bom: false # If the file has a BOM (Byte Order Mark) at the beginning (Experimental) columns: - name: "csv_header_name" # Any custom name of the column in the CSV file (first row). Required if "csv_structure.header" is true. description: "Lorem ipsum" # Optional. Description of the column. Not used in the validation process. rules: # You can use the rules in any combination. Or not use any of them. # They are grouped below simply for ease of navigation and reading. # If you see the value for the rule is "true" - that's just an enable flag. # In other cases, these are rule parameters. # General rules not_empty: true # Value is not empty string. Ignore spaces. exact_value: Some string # Case-sensitive. Exact value for string in the column allow_values: [ y, n, "" ] # Strict set of values that are allowed. Case-sensitive. # Strings only regex: /^[\d]{2}$/ # Any valid regex pattern. See https://www.php.net/manual/en/reference.pcre.pattern.syntax.php min_length: 1 # Integer only. Min length of the string with spaces max_length: 10 # Integer only. Max length of the string with spaces only_trimed: true # Only trimed strings. Example: "Hello World" (not " Hello World ") only_lowercase: true # String is only lower-case. Example: "hello world" only_uppercase: true # String is only upper-case. Example: "HELLO WORLD" only_capitalize: true # String is only capitalized. Example: "Hello World" # Deciaml and integer numbers min: 10 # Can be integer or float, negative and positive max: 100.50 # Can be integer or float, negative and positive precision: 2 # Strict(!) number of digits after the decimal point # Dates date_format: Y-m-d # See: https://www.php.net/manual/en/datetime.format.php min_date: "2000-01-02" # See examples https://www.php.net/manual/en/function.strtotime.php max_date: "+1 day" # See examples https://www.php.net/manual/en/function.strtotime.php # Specific formats is_bool: true # Allow only boolean values "true" and "false", case-insensitive is_int: true # Check format only. Can be negative and positive. Without any separators is_float: true # Check format only. Can be negative and positive. Dot as decimal separator is_ip: true # Only IPv4. Example: "127.0.0.1" is_url: true # Only URL format. Example: "https://example.com/page?query=string#anchor" is_email: true # Only email format. Example: "user@example.com" is_domain: true # Only domain name. Example: "example.com" is_uuid4: true # Only UUID4 format. Example: "550e8400-e29b-41d4-a716-446655440000" is_latitude: true
PHPUnit (8.1, xdebug): tests/Blueprint/MiscTest.php#L107
JBZoo\PHPUnit\Blueprint\MiscTest::testCheckPhpSchemaExampleInReadme The file doesn't contain expected text. See: README.md Expected text: -------------------------------------------------------------------------------- <details> <summary>Click to see: PHP Array as file</summary> ```php <?php declare(strict_types=1); return [ 'csv_structure' => [ 'header' => true, 'delimiter' => ',', 'quote_char' => '\\', 'enclosure' => '"', 'encoding' => 'utf-8', 'bom' => false, ], 'columns' => [ [ 'name' => 'csv_header_name', 'description' => 'Lorem ipsum', 'rules' => [ 'not_empty' => true, 'exact_value' => 'Some string', 'allow_values' => ['y', 'n', ''], 'regex' => '/^[\\d]{2}$/', 'min_length' => 1, 'max_length' => 10, 'only_trimed' => true, 'only_lowercase' => true, 'only_uppercase' => true, 'only_capitalize' => true, 'min' => 10, 'max' => 100.5, 'precision' => 2, 'date_format' => 'Y-m-d', 'min_date' => '2000-01-02', 'max_date' => '+1 day', 'is_bool' => true, 'is_int' => true, 'is_float' => true, 'is_ip' => true, 'is_url' => true, 'is_email' => true, 'is_domain' => true, 'is_uuid4' => true, 'is_latitude' => true, 'is_longitude' => true, 'cardinal_direction' => true, 'usa_market_name' => true, ], ], ], ]; ``` </details> -------------------------------------------------------------------------------- Failed asserting that false is true. vendor/jbzoo/phpunit/src/functions/aliases.php:79 vendor/jbzoo/phpunit/src/functions/aliases.php:439 tests/Blueprint/MiscTest.php:150 tests/Blueprint/MiscTest.php:109
PHPUnit (8.1, xdebug): tests/Blueprint/MiscTest.php#L87
JBZoo\PHPUnit\Blueprint\MiscTest::testCsvStrutureDefaultValues Failed asserting that two arrays are identical. --- Expected +++ Actual @@ @@ -Array &0 () +Array &0 ( + 'header' => true + 'delimiter' => ',' + 'quote_char' => '\' + 'enclosure' => '"' + 'encoding' => 'utf-8' + 'bom' => false +) vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/MiscTest.php:94
PHPUnit (8.1, xdebug): tests/Blueprint/CsvReaderTest.php#L32
JBZoo\PHPUnit\Blueprint\CsvReaderTest::testReadCsvFileWithoutHeader Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'tests/fixtures/simple_no_header.csv' +'./tests/fixtures/simple_no_header.csv' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/CsvReaderTest.php:35
PHPUnit (8.1, xdebug): tests/Blueprint/CsvReaderTest.php#L50
JBZoo\PHPUnit\Blueprint\CsvReaderTest::testReadCsvFileWithHeader Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'tests/fixtures/simple_header.csv' +'./tests/fixtures/simple_header.csv' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/CsvReaderTest.php:53
PHPUnit (8.1, xdebug): tests/Blueprint/ValidatorTest.php#L192
JBZoo\PHPUnit\Blueprint\ValidatorTest::testOnlyCapitalize Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"only_capitalize" at line 2, column "bool (0)". Value "true" should be in capitalize.' +'"only_capitalize" at line 2, column "0:bool". Value "true" should be in capitalize.' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:200
PHPUnit (8.1, xdebug): tests/Blueprint/ValidatorTest.php#L277
JBZoo\PHPUnit\Blueprint\ValidatorTest::testAllowValues Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"allow_values" at line 8, column "bool (0)". Value "False" is not allowed. Allowed values: ["true", "false"].' +'"allow_values" at line 8, column "0:bool". Value "False" is not allowed. Allowed values: ["true", "false"].' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:293
PHPUnit (8.1, xdebug): tests/Blueprint/ValidatorTest.php#L81
JBZoo\PHPUnit\Blueprint\ValidatorTest::testMin Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"min" at line 2, column "seq (0)". Value "1" is less than "10".' +'"min" at line 2, column "0:seq". Value "1" is less than "10".' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:89
PHPUnit (8.1, xdebug): tests/Blueprint/ValidatorTest.php#L180
JBZoo\PHPUnit\Blueprint\ValidatorTest::testOnlyLowercase Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"only_lowercase" at line 8, column "bool (0)". Value "False" should be in lowercase.' +'"only_lowercase" at line 8, column "0:bool". Value "False" should be in lowercase.' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:188
PHPUnit (8.2, xdebug)
The job was canceled because "_8_1_xdebug" failed.
PHPUnit (8.2, xdebug): tests/Blueprint/CsvReaderTest.php#L32
JBZoo\PHPUnit\Blueprint\CsvReaderTest::testReadCsvFileWithoutHeader Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'tests/fixtures/simple_no_header.csv' +'./tests/fixtures/simple_no_header.csv' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/CsvReaderTest.php:35
PHPUnit (8.2, xdebug): tests/Blueprint/CsvReaderTest.php#L50
JBZoo\PHPUnit\Blueprint\CsvReaderTest::testReadCsvFileWithHeader Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'tests/fixtures/simple_header.csv' +'./tests/fixtures/simple_header.csv' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/CsvReaderTest.php:53
PHPUnit (8.2, xdebug): tests/Blueprint/ValidatorTest.php#L351
JBZoo\PHPUnit\Blueprint\ValidatorTest::testIsEmail Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"is_email" at line 2, column "yn (0)". Value "N" is not a valid email.' +'"is_email" at line 2, column "0:yn". Value "N" is not a valid email.' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:357
PHPUnit (8.2, xdebug): tests/Blueprint/ValidatorTest.php#L105
JBZoo\PHPUnit\Blueprint\ValidatorTest::testRegex Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"regex" at line 2, column "seq (0)". Value "1" does not match the pattern "/[a-z]/u".' +'"regex" at line 2, column "0:seq". Value "1" does not match the pattern "/[a-z]/u".' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:114
PHPUnit (8.3, none, --prefer-lowest)
The job was canceled because "_8_1_xdebug" failed.
PHPUnit (8.2, xdebug): tests/Blueprint/ValidatorTest.php#L297
JBZoo\PHPUnit\Blueprint\ValidatorTest::testExactValue Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"exact_value" at line 2, column "exact (0)". Value "1" is not strict equal to "2".' +'"exact_value" at line 2, column "0:exact". Value "1" is not strict equal to "2".' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:303
PHPUnit (8.3, none, --prefer-lowest): tests/Blueprint/MiscTest.php#L112
JBZoo\PHPUnit\Blueprint\MiscTest::testCheckJsonSchemaExampleInReadme The file doesn't contain expected text. See: README.md Expected text: -------------------------------------------------------------------------------- <details> <summary>Click to see: JSON Format</summary> ```json { "csv_structure" : { "header" : true, "delimiter" : ",", "quote_char" : "\\", "enclosure" : "\"", "encoding" : "utf-8", "bom" : false }, "columns" : [ { "name" : "csv_header_name", "description" : "Lorem ipsum", "rules" : { "not_empty" : true, "exact_value" : "Some string", "allow_values" : ["y", "n", ""], "regex" : "\/^[\\d]{2}$\/", "min_length" : 1, "max_length" : 10, "only_trimed" : true, "only_lowercase" : true, "only_uppercase" : true, "only_capitalize" : true, "min" : 10, "max" : 100.5, "precision" : 2, "date_format" : "Y-m-d", "min_date" : "2000-01-02", "max_date" : "+1 day", "is_bool" : true, "is_int" : true, "is_float" : true, "is_ip" : true, "is_url" : true, "is_email" : true, "is_domain" : true, "is_uuid4" : true, "is_latitude" : true, "is_longitude" : true, "cardinal_direction" : true, "usa_market_name" : true } } ] } ``` </details> -------------------------------------------------------------------------------- Failed asserting that false is true. vendor/jbzoo/phpunit/src/functions/aliases.php:79 vendor/jbzoo/phpunit/src/functions/aliases.php:439 tests/Blueprint/MiscTest.php:150 tests/Blueprint/MiscTest.php:114
PHPUnit (8.2, xdebug): tests/Blueprint/ValidatorTest.php#L156
JBZoo\PHPUnit\Blueprint\ValidatorTest::testOnlyTrimed Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"only_trimed" at line 14, column "sentence (0)". Value " Urecam" is not trimmed.' +'"only_trimed" at line 14, column "0:sentence". Value " Urecam" is not trimmed.' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:162
PHPUnit (8.3, none, --prefer-lowest): tests/Blueprint/MiscTest.php#L107
JBZoo\PHPUnit\Blueprint\MiscTest::testCheckPhpSchemaExampleInReadme The file doesn't contain expected text. See: README.md Expected text: -------------------------------------------------------------------------------- <details> <summary>Click to see: PHP Array as file</summary> ```php <?php declare(strict_types=1); return [ 'csv_structure' => [ 'header' => true, 'delimiter' => ',', 'quote_char' => '\\', 'enclosure' => '"', 'encoding' => 'utf-8', 'bom' => false, ], 'columns' => [ [ 'name' => 'csv_header_name', 'description' => 'Lorem ipsum', 'rules' => [ 'not_empty' => true, 'exact_value' => 'Some string', 'allow_values' => ['y', 'n', ''], 'regex' => '/^[\\d]{2}$/', 'min_length' => 1, 'max_length' => 10, 'only_trimed' => true, 'only_lowercase' => true, 'only_uppercase' => true, 'only_capitalize' => true, 'min' => 10, 'max' => 100.5, 'precision' => 2, 'date_format' => 'Y-m-d', 'min_date' => '2000-01-02', 'max_date' => '+1 day', 'is_bool' => true, 'is_int' => true, 'is_float' => true, 'is_ip' => true, 'is_url' => true, 'is_email' => true, 'is_domain' => true, 'is_uuid4' => true, 'is_latitude' => true, 'is_longitude' => true, 'cardinal_direction' => true, 'usa_market_name' => true, ], ], ], ]; ``` </details> -------------------------------------------------------------------------------- Failed asserting that false is true. vendor/jbzoo/phpunit/src/functions/aliases.php:79 vendor/jbzoo/phpunit/src/functions/aliases.php:439 tests/Blueprint/MiscTest.php:150 tests/Blueprint/MiscTest.php:109
PHPUnit (8.2, xdebug): tests/Blueprint/ValidatorTest.php#L132
JBZoo\PHPUnit\Blueprint\ValidatorTest::testMinLength Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"min_length" at line 2, column "seq (0)". Value "1" (legth: 1) is too short. Min length is 1000.' +'"min_length" at line 2, column "0:seq". Value "1" (legth: 1) is too short. Min length is 1000.' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:138
PHPUnit (8.3, none, --prefer-lowest): tests/Blueprint/MiscTest.php#L87
JBZoo\PHPUnit\Blueprint\MiscTest::testCsvStrutureDefaultValues Failed asserting that two arrays are identical. --- Expected +++ Actual @@ @@ -Array &0 () +Array &0 ( + 'header' => true + 'delimiter' => ',' + 'quote_char' => '\' + 'enclosure' => '"' + 'encoding' => 'utf-8' + 'bom' => false +) vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/MiscTest.php:94
PHPUnit (8.2, xdebug): tests/Blueprint/ValidatorTest.php#L81
JBZoo\PHPUnit\Blueprint\ValidatorTest::testMin Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"min" at line 2, column "seq (0)". Value "1" is less than "10".' +'"min" at line 2, column "0:seq". Value "1" is less than "10".' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:87
PHPUnit (8.3, none, --prefer-lowest): tests/Blueprint/MiscTest.php#L97
JBZoo\PHPUnit\Blueprint\MiscTest::testCheckYmlSchemaExampleInReadme The file doesn't contain expected text. See: README.md Expected text: -------------------------------------------------------------------------------- <details> <summary>Click to see: YAML format (with comment)</summary> ```yml # It's a full example of the CSV schema file in YAML format. csv_structure: # Here are default values. You can skip this section if you don't need to override the default values header: true # If the first row is a header. If true, name of each column is required delimiter: , # Delimiter character in CSV file quote_char: \ # Quote character in CSV file enclosure: "\"" # Enclosure for each field in CSV file encoding: utf-8 # Only utf-8, utf-16, utf-32 (Experimental) bom: false # If the file has a BOM (Byte Order Mark) at the beginning (Experimental) columns: - name: "csv_header_name" # Any custom name of the column in the CSV file (first row). Required if "csv_structure.header" is true. description: "Lorem ipsum" # Optional. Description of the column. Not used in the validation process. rules: # You can use the rules in any combination. Or not use any of them. # They are grouped below simply for ease of navigation and reading. # If you see the value for the rule is "true" - that's just an enable flag. # In other cases, these are rule parameters. # General rules not_empty: true # Value is not empty string. Ignore spaces. exact_value: Some string # Case-sensitive. Exact value for string in the column allow_values: [ y, n, "" ] # Strict set of values that are allowed. Case-sensitive. # Strings only regex: /^[\d]{2}$/ # Any valid regex pattern. See https://www.php.net/manual/en/reference.pcre.pattern.syntax.php min_length: 1 # Integer only. Min length of the string with spaces max_length: 10 # Integer only. Max length of the string with spaces only_trimed: true # Only trimed strings. Example: "Hello World" (not " Hello World ") only_lowercase: true # String is only lower-case. Example: "hello world" only_uppercase: true # String is only upper-case. Example: "HELLO WORLD" only_capitalize: true # String is only capitalized. Example: "Hello World" # Deciaml and integer numbers min: 10 # Can be integer or float, negative and positive max: 100.50 # Can be integer or float, negative and positive precision: 2 # Strict(!) number of digits after the decimal point # Dates date_format: Y-m-d # See: https://www.php.net/manual/en/datetime.format.php min_date: "2000-01-02" # See examples https://www.php.net/manual/en/function.strtotime.php max_date: "+1 day" # See examples https://www.php.net/manual/en/function.strtotime.php # Specific formats is_bool: true # Allow only boolean values "true" and "false", case-insensitive is_int: true # Check format only. Can be negative and positive. Without any separators is_float: true # Check format only. Can be negative and positive. Dot as decimal separator is_ip: true # Only IPv4. Example: "127.0.0.1" is_url: true # Only URL format. Example: "https://example.com/page?query=string#anchor" is_email: true # Only email format. Example: "user@example.com" is_domain: true # Only domain name. Example: "example.com" is_uuid4: true # Only UUID4 format. Example: "550e8400-e29b-41d4-a716-446655440000" is_latitude: true
PHPUnit (8.2, xdebug): tests/Blueprint/ValidatorTest.php#L315
JBZoo\PHPUnit\Blueprint\ValidatorTest::testIsInt Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"is_int" at line 2, column "bool (0)". Value "true" is not an integer.' +'"is_int" at line 2, column "0:bool". Value "true" is not an integer.' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:321
PHPUnit (8.3, none, --prefer-lowest): tests/Blueprint/CsvReaderTest.php#L50
JBZoo\PHPUnit\Blueprint\CsvReaderTest::testReadCsvFileWithHeader Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'tests/fixtures/simple_header.csv' +'./tests/fixtures/simple_header.csv' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/CsvReaderTest.php:53
PHPUnit (8.2, xdebug): tests/Blueprint/ValidatorTest.php#L144
JBZoo\PHPUnit\Blueprint\ValidatorTest::testMaxLength Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"max_length" at line 11, column "seq (0)". Value "10" (legth: 2) is too long. Max length is 1.' +'"max_length" at line 11, column "0:seq". Value "10" (legth: 2) is too long. Max length is 1.' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:150
PHPUnit (8.3, none, --prefer-lowest): tests/Blueprint/CsvReaderTest.php#L32
JBZoo\PHPUnit\Blueprint\CsvReaderTest::testReadCsvFileWithoutHeader Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'tests/fixtures/simple_no_header.csv' +'./tests/fixtures/simple_no_header.csv' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/CsvReaderTest.php:35
PHPUnit (8.3, none, --prefer-lowest): tests/Blueprint/ValidatorTest.php#L204
JBZoo\PHPUnit\Blueprint\ValidatorTest::testPrecision Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"precision" at line 2, column "seq (0)". Value "1" has a precision of 0 but should have a precision of 1.' +'"precision" at line 2, column "0:seq". Value "1" has a precision of 0 but should have a precision of 1.' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:210
PHPUnit (8.3, none, --prefer-lowest): tests/Blueprint/ValidatorTest.php#L315
JBZoo\PHPUnit\Blueprint\ValidatorTest::testIsInt Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"is_int" at line 2, column "bool (0)". Value "true" is not an integer.' +'"is_int" at line 2, column "0:bool". Value "true" is not an integer.' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:321
PHPUnit (8.3, none, --prefer-lowest): tests/Blueprint/ValidatorTest.php#L81
JBZoo\PHPUnit\Blueprint\ValidatorTest::testMin Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"min" at line 2, column "seq (0)". Value "1" is less than "10".' +'"min" at line 2, column "0:seq". Value "1" is less than "10".' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:87
PHPUnit (8.3, none, --prefer-lowest): tests/Blueprint/ValidatorTest.php#L244
JBZoo\PHPUnit\Blueprint\ValidatorTest::testMaxDate Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"max_date" at line 23, column "date (0)". Value "2120/02/01" is more than the maximum date "2120-01-01T00:00:00.000+00:00".' +'"max_date" at line 23, column "0:date". Value "2120/02/01" is more than the maximum date "2120-01-01T00:00:00.000+00:00".' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:250
PHPUnit (8.3, xdebug, --prefer-lowest)
The job was canceled because "_8_1_xdebug" failed.
PHPUnit (8.3, xdebug, --prefer-lowest): tests/Blueprint/CsvReaderTest.php#L32
JBZoo\PHPUnit\Blueprint\CsvReaderTest::testReadCsvFileWithoutHeader Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'tests/fixtures/simple_no_header.csv' +'./tests/fixtures/simple_no_header.csv' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/CsvReaderTest.php:35
PHPUnit (8.3, xdebug, --prefer-lowest): tests/Blueprint/CsvReaderTest.php#L50
JBZoo\PHPUnit\Blueprint\CsvReaderTest::testReadCsvFileWithHeader Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'tests/fixtures/simple_header.csv' +'./tests/fixtures/simple_header.csv' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/CsvReaderTest.php:53
PHPUnit (8.3, xdebug, --prefer-lowest): tests/Blueprint/ValidatorTest.php#L351
JBZoo\PHPUnit\Blueprint\ValidatorTest::testIsEmail Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"is_email" at line 2, column "yn (0)". Value "N" is not a valid email.' +'"is_email" at line 2, column "0:yn". Value "N" is not a valid email.' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:357
PHPUnit (8.3, xdebug, --prefer-lowest): tests/Blueprint/ValidatorTest.php#L105
JBZoo\PHPUnit\Blueprint\ValidatorTest::testRegex Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"regex" at line 2, column "seq (0)". Value "1" does not match the pattern "/[a-z]/u".' +'"regex" at line 2, column "0:seq". Value "1" does not match the pattern "/[a-z]/u".' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:114
PHPUnit (8.3, xdebug, --prefer-lowest): tests/Blueprint/ValidatorTest.php#L297
JBZoo\PHPUnit\Blueprint\ValidatorTest::testExactValue Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"exact_value" at line 2, column "exact (0)". Value "1" is not strict equal to "2".' +'"exact_value" at line 2, column "0:exact". Value "1" is not strict equal to "2".' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:303
PHPUnit (8.3, xdebug, --prefer-lowest): tests/Blueprint/ValidatorTest.php#L156
JBZoo\PHPUnit\Blueprint\ValidatorTest::testOnlyTrimed Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"only_trimed" at line 14, column "sentence (0)". Value " Urecam" is not trimmed.' +'"only_trimed" at line 14, column "0:sentence". Value " Urecam" is not trimmed.' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:162
PHPUnit (8.3, xdebug, --prefer-lowest): tests/Blueprint/ValidatorTest.php#L132
JBZoo\PHPUnit\Blueprint\ValidatorTest::testMinLength Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"min_length" at line 2, column "seq (0)". Value "1" (legth: 1) is too short. Min length is 1000.' +'"min_length" at line 2, column "0:seq". Value "1" (legth: 1) is too short. Min length is 1000.' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:138
PHPUnit (8.3, xdebug, --prefer-lowest): tests/Blueprint/ValidatorTest.php#L81
JBZoo\PHPUnit\Blueprint\ValidatorTest::testMin Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"min" at line 2, column "seq (0)". Value "1" is less than "10".' +'"min" at line 2, column "0:seq". Value "1" is less than "10".' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:87
PHPUnit (8.3, xdebug, --prefer-lowest): tests/Blueprint/ValidatorTest.php#L315
JBZoo\PHPUnit\Blueprint\ValidatorTest::testIsInt Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"is_int" at line 2, column "bool (0)". Value "true" is not an integer.' +'"is_int" at line 2, column "0:bool". Value "true" is not an integer.' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:321
PHPUnit (8.3, xdebug, --prefer-lowest): tests/Blueprint/ValidatorTest.php#L144
JBZoo\PHPUnit\Blueprint\ValidatorTest::testMaxLength Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"max_length" at line 11, column "seq (0)". Value "10" (legth: 2) is too long. Max length is 1.' +'"max_length" at line 11, column "0:seq". Value "10" (legth: 2) is too long. Max length is 1.' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:150
Linters (8.2): src/Commands/CreateCsv.php#L57
The method CreateCsv::executeAction() calls the typical debug function dump() which is mostly only used during development. Rule : Design Rules / DevelopmentCodeFragment / Priority: 1 PHP Mute : @SuppressWarnings(PHPMD.DevelopmentCodeFragment) File Path: src/Commands/CreateCsv.php:57 Docs : https://phpmd.org/rules/design.html#developmentcodefragment
Linters (8.2): src/Commands/CreateSchema.php#L57
The method CreateSchema::executeAction() calls the typical debug function dump() which is mostly only used during development. Rule : Design Rules / DevelopmentCodeFragment / Priority: 1 PHP Mute : @SuppressWarnings(PHPMD.DevelopmentCodeFragment) File Path: src/Commands/CreateSchema.php:57 Docs : https://phpmd.org/rules/design.html#developmentcodefragment
Linters (8.2): src/Commands/ValidateDir.php#L48
The method ValidateDir::executeAction() calls the typical debug function dump() which is mostly only used during development. Rule : Design Rules / DevelopmentCodeFragment / Priority: 1 PHP Mute : @SuppressWarnings(PHPMD.DevelopmentCodeFragment) File Path: src/Commands/ValidateDir.php:48 Docs : https://phpmd.org/rules/design.html#developmentcodefragment
Linters (8.2): src/Csv/CsvFile.php#L152
Avoid unused local variables such as '$errorAcc'. Rule : Unused Code Rules / UnusedLocalVariable / Priority: 3 PHP Mute : @SuppressWarnings(PHPMD.UnusedLocalVariable) File Path: src/Csv/CsvFile.php:152 Docs : https://phpmd.org/rules/unusedcode.html#unusedlocalvariable
Linters (8.2): src/Csv/CsvFile.php#L152
Avoid unused local variables such as '$errorAcc'. Rule : Unused Code Rules / UnusedLocalVariable / Priority: 3 PHP Mute : @SuppressWarnings(PHPMD.UnusedLocalVariable) File Path: src/Csv/CsvFile.php:152 Docs : https://phpmd.org/rules/unusedcode.html#unusedlocalvariable
Linters (8.2): src/Csv/CsvFile.php#L160
Avoid unused parameters such as '$quickStop'. Rule : Unused Code Rules / UnusedFormalParameter / Priority: 3 PHP Mute : @SuppressWarnings(PHPMD.UnusedFormalParameter) File Path: src/Csv/CsvFile.php:160 Docs : https://phpmd.org/rules/unusedcode.html#unusedformalparameter
Linters (8.2): src/Validators/Validator.php#L23
Avoid unused private fields such as '$column'. Rule : Unused Code Rules / UnusedPrivateField / Priority: 3 PHP Mute : @SuppressWarnings(PHPMD.UnusedPrivateField) File Path: src/Validators/Validator.php:23 Docs : https://phpmd.org/rules/unusedcode.html#unusedprivatefield
Linters (8.2)
Process completed with exit code 2.
PHPUnit (8.3, xdebug)
The job was canceled because "_8_1_xdebug" failed.
PHPUnit (8.3, xdebug): tests/Blueprint/MiscTest.php#L112
JBZoo\PHPUnit\Blueprint\MiscTest::testCheckJsonSchemaExampleInReadme The file doesn't contain expected text. See: README.md Expected text: -------------------------------------------------------------------------------- <details> <summary>Click to see: JSON Format</summary> ```json { "csv_structure" : { "header" : true, "delimiter" : ",", "quote_char" : "\\", "enclosure" : "\"", "encoding" : "utf-8", "bom" : false }, "columns" : [ { "name" : "csv_header_name", "description" : "Lorem ipsum", "rules" : { "not_empty" : true, "exact_value" : "Some string", "allow_values" : ["y", "n", ""], "regex" : "\/^[\\d]{2}$\/", "min_length" : 1, "max_length" : 10, "only_trimed" : true, "only_lowercase" : true, "only_uppercase" : true, "only_capitalize" : true, "min" : 10, "max" : 100.5, "precision" : 2, "date_format" : "Y-m-d", "min_date" : "2000-01-02", "max_date" : "+1 day", "is_bool" : true, "is_int" : true, "is_float" : true, "is_ip" : true, "is_url" : true, "is_email" : true, "is_domain" : true, "is_uuid4" : true, "is_latitude" : true, "is_longitude" : true, "cardinal_direction" : true, "usa_market_name" : true } } ] } ``` </details> -------------------------------------------------------------------------------- Failed asserting that false is true. vendor/jbzoo/phpunit/src/functions/aliases.php:79 vendor/jbzoo/phpunit/src/functions/aliases.php:439 tests/Blueprint/MiscTest.php:150 tests/Blueprint/MiscTest.php:114
PHPUnit (8.3, xdebug): tests/Blueprint/MiscTest.php#L107
JBZoo\PHPUnit\Blueprint\MiscTest::testCheckPhpSchemaExampleInReadme The file doesn't contain expected text. See: README.md Expected text: -------------------------------------------------------------------------------- <details> <summary>Click to see: PHP Array as file</summary> ```php <?php declare(strict_types=1); return [ 'csv_structure' => [ 'header' => true, 'delimiter' => ',', 'quote_char' => '\\', 'enclosure' => '"', 'encoding' => 'utf-8', 'bom' => false, ], 'columns' => [ [ 'name' => 'csv_header_name', 'description' => 'Lorem ipsum', 'rules' => [ 'not_empty' => true, 'exact_value' => 'Some string', 'allow_values' => ['y', 'n', ''], 'regex' => '/^[\\d]{2}$/', 'min_length' => 1, 'max_length' => 10, 'only_trimed' => true, 'only_lowercase' => true, 'only_uppercase' => true, 'only_capitalize' => true, 'min' => 10, 'max' => 100.5, 'precision' => 2, 'date_format' => 'Y-m-d', 'min_date' => '2000-01-02', 'max_date' => '+1 day', 'is_bool' => true, 'is_int' => true, 'is_float' => true, 'is_ip' => true, 'is_url' => true, 'is_email' => true, 'is_domain' => true, 'is_uuid4' => true, 'is_latitude' => true, 'is_longitude' => true, 'cardinal_direction' => true, 'usa_market_name' => true, ], ], ], ]; ``` </details> -------------------------------------------------------------------------------- Failed asserting that false is true. vendor/jbzoo/phpunit/src/functions/aliases.php:79 vendor/jbzoo/phpunit/src/functions/aliases.php:439 tests/Blueprint/MiscTest.php:150 tests/Blueprint/MiscTest.php:109
PHPUnit (8.3, xdebug): tests/Blueprint/MiscTest.php#L87
JBZoo\PHPUnit\Blueprint\MiscTest::testCsvStrutureDefaultValues Failed asserting that two arrays are identical. --- Expected +++ Actual @@ @@ -Array &0 () +Array &0 ( + 'header' => true + 'delimiter' => ',' + 'quote_char' => '\' + 'enclosure' => '"' + 'encoding' => 'utf-8' + 'bom' => false +) vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/MiscTest.php:94
PHPUnit (8.3, xdebug): tests/Blueprint/MiscTest.php#L97
JBZoo\PHPUnit\Blueprint\MiscTest::testCheckYmlSchemaExampleInReadme The file doesn't contain expected text. See: README.md Expected text: -------------------------------------------------------------------------------- <details> <summary>Click to see: YAML format (with comment)</summary> ```yml # It's a full example of the CSV schema file in YAML format. csv_structure: # Here are default values. You can skip this section if you don't need to override the default values header: true # If the first row is a header. If true, name of each column is required delimiter: , # Delimiter character in CSV file quote_char: \ # Quote character in CSV file enclosure: "\"" # Enclosure for each field in CSV file encoding: utf-8 # Only utf-8, utf-16, utf-32 (Experimental) bom: false # If the file has a BOM (Byte Order Mark) at the beginning (Experimental) columns: - name: "csv_header_name" # Any custom name of the column in the CSV file (first row). Required if "csv_structure.header" is true. description: "Lorem ipsum" # Optional. Description of the column. Not used in the validation process. rules: # You can use the rules in any combination. Or not use any of them. # They are grouped below simply for ease of navigation and reading. # If you see the value for the rule is "true" - that's just an enable flag. # In other cases, these are rule parameters. # General rules not_empty: true # Value is not empty string. Ignore spaces. exact_value: Some string # Case-sensitive. Exact value for string in the column allow_values: [ y, n, "" ] # Strict set of values that are allowed. Case-sensitive. # Strings only regex: /^[\d]{2}$/ # Any valid regex pattern. See https://www.php.net/manual/en/reference.pcre.pattern.syntax.php min_length: 1 # Integer only. Min length of the string with spaces max_length: 10 # Integer only. Max length of the string with spaces only_trimed: true # Only trimed strings. Example: "Hello World" (not " Hello World ") only_lowercase: true # String is only lower-case. Example: "hello world" only_uppercase: true # String is only upper-case. Example: "HELLO WORLD" only_capitalize: true # String is only capitalized. Example: "Hello World" # Deciaml and integer numbers min: 10 # Can be integer or float, negative and positive max: 100.50 # Can be integer or float, negative and positive precision: 2 # Strict(!) number of digits after the decimal point # Dates date_format: Y-m-d # See: https://www.php.net/manual/en/datetime.format.php min_date: "2000-01-02" # See examples https://www.php.net/manual/en/function.strtotime.php max_date: "+1 day" # See examples https://www.php.net/manual/en/function.strtotime.php # Specific formats is_bool: true # Allow only boolean values "true" and "false", case-insensitive is_int: true # Check format only. Can be negative and positive. Without any separators is_float: true # Check format only. Can be negative and positive. Dot as decimal separator is_ip: true # Only IPv4. Example: "127.0.0.1" is_url: true # Only URL format. Example: "https://example.com/page?query=string#anchor" is_email: true # Only email format. Example: "user@example.com" is_domain: true # Only domain name. Example: "example.com" is_uuid4: true # Only UUID4 format. Example: "550e8400-e29b-41d4-a716-446655440000" is_latitude: true
PHPUnit (8.3, xdebug): tests/Blueprint/CsvReaderTest.php#L50
JBZoo\PHPUnit\Blueprint\CsvReaderTest::testReadCsvFileWithHeader Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'tests/fixtures/simple_header.csv' +'./tests/fixtures/simple_header.csv' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/CsvReaderTest.php:53
PHPUnit (8.3, xdebug): tests/Blueprint/CsvReaderTest.php#L32
JBZoo\PHPUnit\Blueprint\CsvReaderTest::testReadCsvFileWithoutHeader Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'tests/fixtures/simple_no_header.csv' +'./tests/fixtures/simple_no_header.csv' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/CsvReaderTest.php:35
PHPUnit (8.3, xdebug): tests/Blueprint/ValidatorTest.php#L204
JBZoo\PHPUnit\Blueprint\ValidatorTest::testPrecision Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"precision" at line 2, column "seq (0)". Value "1" has a precision of 0 but should have a precision of 1.' +'"precision" at line 2, column "0:seq". Value "1" has a precision of 0 but should have a precision of 1.' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:210
PHPUnit (8.3, xdebug): tests/Blueprint/ValidatorTest.php#L315
JBZoo\PHPUnit\Blueprint\ValidatorTest::testIsInt Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"is_int" at line 2, column "bool (0)". Value "true" is not an integer.' +'"is_int" at line 2, column "0:bool". Value "true" is not an integer.' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:321
PHPUnit (8.3, xdebug): tests/Blueprint/ValidatorTest.php#L81
JBZoo\PHPUnit\Blueprint\ValidatorTest::testMin Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"min" at line 2, column "seq (0)". Value "1" is less than "10".' +'"min" at line 2, column "0:seq". Value "1" is less than "10".' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:87
PHPUnit (8.3, xdebug): tests/Blueprint/ValidatorTest.php#L244
JBZoo\PHPUnit\Blueprint\ValidatorTest::testMaxDate Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"max_date" at line 23, column "date (0)". Value "2120/02/01" is more than the maximum date "2120-01-01T00:00:00.000+00:00".' +'"max_date" at line 23, column "0:date". Value "2120/02/01" is more than the maximum date "2120-01-01T00:00:00.000+00:00".' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:250
PHPUnit (8.2, xdebug, --prefer-lowest)
The job was canceled because "_8_1_xdebug" failed.
PHPUnit (8.2, xdebug, --prefer-lowest): tests/Blueprint/MiscTest.php#L112
JBZoo\PHPUnit\Blueprint\MiscTest::testCheckJsonSchemaExampleInReadme The file doesn't contain expected text. See: README.md Expected text: -------------------------------------------------------------------------------- <details> <summary>Click to see: JSON Format</summary> ```json { "csv_structure" : { "header" : true, "delimiter" : ",", "quote_char" : "\\", "enclosure" : "\"", "encoding" : "utf-8", "bom" : false }, "columns" : [ { "name" : "csv_header_name", "description" : "Lorem ipsum", "rules" : { "not_empty" : true, "exact_value" : "Some string", "allow_values" : ["y", "n", ""], "regex" : "\/^[\\d]{2}$\/", "min_length" : 1, "max_length" : 10, "only_trimed" : true, "only_lowercase" : true, "only_uppercase" : true, "only_capitalize" : true, "min" : 10, "max" : 100.5, "precision" : 2, "date_format" : "Y-m-d", "min_date" : "2000-01-02", "max_date" : "+1 day", "is_bool" : true, "is_int" : true, "is_float" : true, "is_ip" : true, "is_url" : true, "is_email" : true, "is_domain" : true, "is_uuid4" : true, "is_latitude" : true, "is_longitude" : true, "cardinal_direction" : true, "usa_market_name" : true } } ] } ``` </details> -------------------------------------------------------------------------------- Failed asserting that false is true. vendor/jbzoo/phpunit/src/functions/aliases.php:79 vendor/jbzoo/phpunit/src/functions/aliases.php:439 tests/Blueprint/MiscTest.php:150 tests/Blueprint/MiscTest.php:114
PHPUnit (8.2, xdebug, --prefer-lowest): tests/Blueprint/MiscTest.php#L107
JBZoo\PHPUnit\Blueprint\MiscTest::testCheckPhpSchemaExampleInReadme The file doesn't contain expected text. See: README.md Expected text: -------------------------------------------------------------------------------- <details> <summary>Click to see: PHP Array as file</summary> ```php <?php declare(strict_types=1); return [ 'csv_structure' => [ 'header' => true, 'delimiter' => ',', 'quote_char' => '\\', 'enclosure' => '"', 'encoding' => 'utf-8', 'bom' => false, ], 'columns' => [ [ 'name' => 'csv_header_name', 'description' => 'Lorem ipsum', 'rules' => [ 'not_empty' => true, 'exact_value' => 'Some string', 'allow_values' => ['y', 'n', ''], 'regex' => '/^[\\d]{2}$/', 'min_length' => 1, 'max_length' => 10, 'only_trimed' => true, 'only_lowercase' => true, 'only_uppercase' => true, 'only_capitalize' => true, 'min' => 10, 'max' => 100.5, 'precision' => 2, 'date_format' => 'Y-m-d', 'min_date' => '2000-01-02', 'max_date' => '+1 day', 'is_bool' => true, 'is_int' => true, 'is_float' => true, 'is_ip' => true, 'is_url' => true, 'is_email' => true, 'is_domain' => true, 'is_uuid4' => true, 'is_latitude' => true, 'is_longitude' => true, 'cardinal_direction' => true, 'usa_market_name' => true, ], ], ], ]; ``` </details> -------------------------------------------------------------------------------- Failed asserting that false is true. vendor/jbzoo/phpunit/src/functions/aliases.php:79 vendor/jbzoo/phpunit/src/functions/aliases.php:439 tests/Blueprint/MiscTest.php:150 tests/Blueprint/MiscTest.php:109
PHPUnit (8.2, xdebug, --prefer-lowest): tests/Blueprint/MiscTest.php#L87
JBZoo\PHPUnit\Blueprint\MiscTest::testCsvStrutureDefaultValues Failed asserting that two arrays are identical. --- Expected +++ Actual @@ @@ -Array &0 () +Array &0 ( + 'header' => true + 'delimiter' => ',' + 'quote_char' => '\' + 'enclosure' => '"' + 'encoding' => 'utf-8' + 'bom' => false +) vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/MiscTest.php:94
PHPUnit (8.2, xdebug, --prefer-lowest): tests/Blueprint/MiscTest.php#L97
JBZoo\PHPUnit\Blueprint\MiscTest::testCheckYmlSchemaExampleInReadme The file doesn't contain expected text. See: README.md Expected text: -------------------------------------------------------------------------------- <details> <summary>Click to see: YAML format (with comment)</summary> ```yml # It's a full example of the CSV schema file in YAML format. csv_structure: # Here are default values. You can skip this section if you don't need to override the default values header: true # If the first row is a header. If true, name of each column is required delimiter: , # Delimiter character in CSV file quote_char: \ # Quote character in CSV file enclosure: "\"" # Enclosure for each field in CSV file encoding: utf-8 # Only utf-8, utf-16, utf-32 (Experimental) bom: false # If the file has a BOM (Byte Order Mark) at the beginning (Experimental) columns: - name: "csv_header_name" # Any custom name of the column in the CSV file (first row). Required if "csv_structure.header" is true. description: "Lorem ipsum" # Optional. Description of the column. Not used in the validation process. rules: # You can use the rules in any combination. Or not use any of them. # They are grouped below simply for ease of navigation and reading. # If you see the value for the rule is "true" - that's just an enable flag. # In other cases, these are rule parameters. # General rules not_empty: true # Value is not empty string. Ignore spaces. exact_value: Some string # Case-sensitive. Exact value for string in the column allow_values: [ y, n, "" ] # Strict set of values that are allowed. Case-sensitive. # Strings only regex: /^[\d]{2}$/ # Any valid regex pattern. See https://www.php.net/manual/en/reference.pcre.pattern.syntax.php min_length: 1 # Integer only. Min length of the string with spaces max_length: 10 # Integer only. Max length of the string with spaces only_trimed: true # Only trimed strings. Example: "Hello World" (not " Hello World ") only_lowercase: true # String is only lower-case. Example: "hello world" only_uppercase: true # String is only upper-case. Example: "HELLO WORLD" only_capitalize: true # String is only capitalized. Example: "Hello World" # Deciaml and integer numbers min: 10 # Can be integer or float, negative and positive max: 100.50 # Can be integer or float, negative and positive precision: 2 # Strict(!) number of digits after the decimal point # Dates date_format: Y-m-d # See: https://www.php.net/manual/en/datetime.format.php min_date: "2000-01-02" # See examples https://www.php.net/manual/en/function.strtotime.php max_date: "+1 day" # See examples https://www.php.net/manual/en/function.strtotime.php # Specific formats is_bool: true # Allow only boolean values "true" and "false", case-insensitive is_int: true # Check format only. Can be negative and positive. Without any separators is_float: true # Check format only. Can be negative and positive. Dot as decimal separator is_ip: true # Only IPv4. Example: "127.0.0.1" is_url: true # Only URL format. Example: "https://example.com/page?query=string#anchor" is_email: true # Only email format. Example: "user@example.com" is_domain: true # Only domain name. Example: "example.com" is_uuid4: true # Only UUID4 format. Example: "550e8400-e29b-41d4-a716-446655440000" is_latitude: true
PHPUnit (8.2, xdebug, --prefer-lowest): tests/Blueprint/CsvReaderTest.php#L50
JBZoo\PHPUnit\Blueprint\CsvReaderTest::testReadCsvFileWithHeader Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'tests/fixtures/simple_header.csv' +'./tests/fixtures/simple_header.csv' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/CsvReaderTest.php:53
PHPUnit (8.2, xdebug, --prefer-lowest): tests/Blueprint/CsvReaderTest.php#L32
JBZoo\PHPUnit\Blueprint\CsvReaderTest::testReadCsvFileWithoutHeader Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'tests/fixtures/simple_no_header.csv' +'./tests/fixtures/simple_no_header.csv' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/CsvReaderTest.php:35
PHPUnit (8.2, xdebug, --prefer-lowest): tests/Blueprint/ValidatorTest.php#L204
JBZoo\PHPUnit\Blueprint\ValidatorTest::testPrecision Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"precision" at line 2, column "seq (0)". Value "1" has a precision of 0 but should have a precision of 1.' +'"precision" at line 2, column "0:seq". Value "1" has a precision of 0 but should have a precision of 1.' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:210
PHPUnit (8.2, xdebug, --prefer-lowest): tests/Blueprint/ValidatorTest.php#L315
JBZoo\PHPUnit\Blueprint\ValidatorTest::testIsInt Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"is_int" at line 2, column "bool (0)". Value "true" is not an integer.' +'"is_int" at line 2, column "0:bool". Value "true" is not an integer.' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:321
PHPUnit (8.2, xdebug, --prefer-lowest): tests/Blueprint/ValidatorTest.php#L81
JBZoo\PHPUnit\Blueprint\ValidatorTest::testMin Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"min" at line 2, column "seq (0)". Value "1" is less than "10".' +'"min" at line 2, column "0:seq". Value "1" is less than "10".' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:87
PHPUnit (8.2, xdebug, --prefer-lowest): tests/Blueprint/ValidatorTest.php#L244
JBZoo\PHPUnit\Blueprint\ValidatorTest::testMaxDate Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"max_date" at line 23, column "date (0)". Value "2120/02/01" is more than the maximum date "2120-01-01T00:00:00.000+00:00".' +'"max_date" at line 23, column "0:date". Value "2120/02/01" is more than the maximum date "2120-01-01T00:00:00.000+00:00".' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:250
PHPUnit (8.2, none)
The job was canceled because "_8_1_xdebug" failed.
PHPUnit (8.2, none): tests/Blueprint/CsvReaderTest.php#L50
JBZoo\PHPUnit\Blueprint\CsvReaderTest::testReadCsvFileWithHeader Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'tests/fixtures/simple_header.csv' +'./tests/fixtures/simple_header.csv' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/CsvReaderTest.php:53
PHPUnit (8.2, none): tests/Blueprint/CsvReaderTest.php#L32
JBZoo\PHPUnit\Blueprint\CsvReaderTest::testReadCsvFileWithoutHeader Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'tests/fixtures/simple_no_header.csv' +'./tests/fixtures/simple_no_header.csv' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/CsvReaderTest.php:35
PHPUnit (8.2, none): tests/Blueprint/ValidatorTest.php#L59
JBZoo\PHPUnit\Blueprint\ValidatorTest::testNotEmptyMessage Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"not_empty" at line 19, column "integer (0)". Value is empty.' +'"not_empty" at line 19, column "0:integer". Value is empty.' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:65
PHPUnit (8.2, none): tests/Blueprint/ValidatorTest.php#L105
JBZoo\PHPUnit\Blueprint\ValidatorTest::testRegex Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"regex" at line 2, column "seq (0)". Value "1" does not match the pattern "/[a-z]/u".' +'"regex" at line 2, column "0:seq". Value "1" does not match the pattern "/[a-z]/u".' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:114
PHPUnit (8.2, none): tests/Blueprint/ValidatorTest.php#L180
JBZoo\PHPUnit\Blueprint\ValidatorTest::testOnlyLowercase Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"only_lowercase" at line 8, column "bool (0)". Value "False" should be in lowercase.' +'"only_lowercase" at line 8, column "0:bool". Value "False" should be in lowercase.' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:186
PHPUnit (8.2, none): tests/Blueprint/ValidatorTest.php#L156
JBZoo\PHPUnit\Blueprint\ValidatorTest::testOnlyTrimed Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"only_trimed" at line 14, column "sentence (0)". Value " Urecam" is not trimmed.' +'"only_trimed" at line 14, column "0:sentence". Value " Urecam" is not trimmed.' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:162
PHPUnit (8.2, none): tests/Blueprint/ValidatorTest.php#L204
JBZoo\PHPUnit\Blueprint\ValidatorTest::testPrecision Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"precision" at line 2, column "seq (0)". Value "1" has a precision of 0 but should have a precision of 1.' +'"precision" at line 2, column "0:seq". Value "1" has a precision of 0 but should have a precision of 1.' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:210
PHPUnit (8.2, none): tests/Blueprint/ValidatorTest.php#L132
JBZoo\PHPUnit\Blueprint\ValidatorTest::testMinLength Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"min_length" at line 2, column "seq (0)". Value "1" (legth: 1) is too short. Min length is 1000.' +'"min_length" at line 2, column "0:seq". Value "1" (legth: 1) is too short. Min length is 1000.' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:138
PHPUnit (8.2, none): tests/Blueprint/ValidatorTest.php#L277
JBZoo\PHPUnit\Blueprint\ValidatorTest::testAllowValues Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"allow_values" at line 8, column "bool (0)". Value "False" is not allowed. Allowed values: ["true", "false"].' +'"allow_values" at line 8, column "0:bool". Value "False" is not allowed. Allowed values: ["true", "false"].' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:290
PHPUnit (8.2, none): tests/Blueprint/ValidatorTest.php#L339
JBZoo\PHPUnit\Blueprint\ValidatorTest::testIsBool Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'"is_bool" at line 2, column "yn (0)". Value "n" is not allowed. Allowed values: ["true", "false"].' +'"is_bool" at line 2, column "0:yn". Value "n" is not allowed. Allowed values: ["true", "false"].' vendor/jbzoo/phpunit/src/functions/aliases.php:129 tests/Blueprint/ValidatorTest.php:345
PHPUnit (8.1, none, --prefer-lowest)
The job was canceled because "_8_1_xdebug" failed.
PHPUnit (8.1, none, --prefer-lowest)
The operation was canceled.
PHPUnit (8.1, none)
The job was canceled because "_8_1_xdebug" failed.
PHPUnit (8.1, none)
The operation was canceled.
PHPUnit (8.1, xdebug, --prefer-lowest)
The job was canceled because "_8_1_xdebug" failed.
PHPUnit (8.1, xdebug, --prefer-lowest)
The operation was canceled.
Linters (8.3)
The job was canceled because "_8_2" failed.
Linters (8.3)
The operation was canceled.
Linters (8.1)
The job was canceled because "_8_2" failed.
Linters (8.1)
The operation was canceled.
PHPUnit (8.2, none, --prefer-lowest)
The job was canceled because "_8_1_xdebug" failed.
PHPUnit (8.2, none, --prefer-lowest)
The operation was canceled.
PHPUnit (8.3, none)
The job was canceled because "_8_1_xdebug" failed.
PHPUnit (8.3, none)
The operation was canceled.
PHPUnit (8.1, xdebug)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Linters (8.2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Reports (8.1)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Reports (8.3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Reports (8.2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

Artifacts

Produced during runtime
Name Size
Reports - 8.1 Expired
1.94 MB
Reports - 8.2 Expired
1.94 MB
Reports - 8.3 Expired
1.94 MB