diff --git a/tests/php-code-style/.php-cs-fixer.dist.php b/tests/php-code-style/.php-cs-fixer.dist.php index 1478f735c..6456c3dd9 100644 --- a/tests/php-code-style/.php-cs-fixer.dist.php +++ b/tests/php-code-style/.php-cs-fixer.dist.php @@ -6,7 +6,7 @@ echo $APPROOT; $finder = PhpCsFixer\Finder::create() ->in($APPROOT) ->exclude(['oql', 'data', 'extensions']) - ->notPath(['/env-*/', '/cache-*/', 'lib', 'vendor', 'node_modules']) + ->notPath(['/env-*/', '/cache-*/', 'lib', 'vendor', 'node_modules', 'config-itop', 'php-static-analysis']) ; $config = new PhpCsFixer\Config(); diff --git a/tests/php-unit-tests/unitary-tests/core/Log/ExceptionLogTest.php b/tests/php-unit-tests/unitary-tests/core/Log/ExceptionLogTest.php index baaf59372..8acc2c3ef 100644 --- a/tests/php-unit-tests/unitary-tests/core/Log/ExceptionLogTest.php +++ b/tests/php-unit-tests/unitary-tests/core/Log/ExceptionLogTest.php @@ -68,7 +68,7 @@ class ExceptionLogTest extends ItopDataTestCase $sExpectedFile = __FILE__; // @formatter:off $oException = new $aExceptions[$i]("Iteration number $i"); - $sExpectedLine = __LINE__; //Both should remain on the same line + $sExpectedLine = __LINE__-1; //Both should remain on the same line // @formatter:on $iExpectedWriteNumber = $aExpectedWriteNumber[$i];