From f9874f8f7ba6df058e25a0aac3488de70d9419a6 Mon Sep 17 00:00:00 2001 From: Albin Date: Sun, 4 Feb 2024 20:31:37 +0100 Subject: [PATCH] afup#1437 update atoum + fix unit test --- composer.json | 4 +-- composer.lock | 25 +++++++++++-------- .../Compta/Importer/CreditMutuel.php | 2 +- 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/composer.json b/composer.json index 97971bbab..00d18d590 100644 --- a/composer.json +++ b/composer.json @@ -92,12 +92,12 @@ ], "minimum-stability": "stable", "require-dev": { - "atoum/atoum": "^2.8", + "atoum/atoum": "^2.8||^4.0", "atoum/stubs": "^2.5", - "friendsofphp/php-cs-fixer": "~2", "behat/behat": "^3.7", "behat/mink-extension": "^2.3", "behat/mink-goutte-driver": "^1.2", + "friendsofphp/php-cs-fixer": "~2", "smalot/pdfparser": "^0.19.0" }, "repositories": [ diff --git a/composer.lock b/composer.lock index 1c0ac44ac..5d99b36e1 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "f62fc5ab3bb05e512af3577ad7f6f11f", + "content-hash": "43519f63910892d2c388db756f61b0d4", "packages": [ { "name": "algolia/algoliasearch-client-php", @@ -5866,32 +5866,35 @@ "packages-dev": [ { "name": "atoum/atoum", - "version": "2.9.1", + "version": "4.1", "source": { "type": "git", "url": "https://github.com/atoum/atoum.git", - "reference": "b02598b4aa2f915d792c7a49589766fca04a4870" + "reference": "e866f3d4ad683c35757cd73fc6da3e3d5e563667" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/atoum/atoum/zipball/b02598b4aa2f915d792c7a49589766fca04a4870", - "reference": "b02598b4aa2f915d792c7a49589766fca04a4870", + "url": "https://api.github.com/repos/atoum/atoum/zipball/e866f3d4ad683c35757cd73fc6da3e3d5e563667", + "reference": "e866f3d4ad683c35757cd73fc6da3e3d5e563667", "shasum": "" }, "require": { "ext-hash": "*", "ext-json": "*", - "ext-session": "*", "ext-tokenizer": "*", "ext-xml": "*", - "php": ">=5.3.3" + "php": "^7.4 || ^8.0" }, "replace": { "mageekguy/atoum": "*" }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.2" + }, "suggest": { "atoum/stubs": "Provides IDE support (like autocompletion) for atoum", - "ext-mbstring": "Provides support for UTF-8 strings" + "ext-mbstring": "Provides support for UTF-8 strings", + "ext-xdebug": "Provides code coverage report (>= 2.3)" }, "bin": [ "bin/atoum" @@ -5899,7 +5902,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.x-dev" + "dev-master": "4.x-dev" } }, "autoload": { @@ -5944,9 +5947,9 @@ ], "support": { "issues": "https://github.com/atoum/atoum/issues", - "source": "https://github.com/atoum/atoum/tree/2.9.1" + "source": "https://github.com/atoum/atoum/tree/4.1" }, - "time": "2017-07-19T21:06:17+00:00" + "time": "2022-11-20T20:18:31+00:00" }, { "name": "atoum/stubs", diff --git a/sources/AppBundle/Compta/Importer/CreditMutuel.php b/sources/AppBundle/Compta/Importer/CreditMutuel.php index a6e7fb1e4..c555da2ec 100644 --- a/sources/AppBundle/Compta/Importer/CreditMutuel.php +++ b/sources/AppBundle/Compta/Importer/CreditMutuel.php @@ -51,7 +51,7 @@ public function extract() continue; } - if (count($data) !== 6) { + if (!$data || count($data) !== 6) { continue; }