fix tests

This commit is contained in:
Dennis Eichhorn 2022-10-08 21:34:58 +02:00
parent 27dc00f48b
commit 8170920ba4
7 changed files with 12 additions and 5 deletions

View File

@ -1,4 +1,5 @@
<?php declare(strict_types=1); <?php
declare(strict_types=1);
return [ return [
'target_php_version' => null, 'target_php_version' => null,
'strict_param_checking' => true, 'strict_param_checking' => true,

View File

@ -21,6 +21,7 @@
<exclude-pattern>*/omsSetup/*</exclude-pattern> <exclude-pattern>*/omsSetup/*</exclude-pattern>
<exclude-pattern>*/demoSetup/*</exclude-pattern> <exclude-pattern>*/demoSetup/*</exclude-pattern>
<exclude-pattern>*/Routes/*</exclude-pattern> <exclude-pattern>*/Routes/*</exclude-pattern>
<exclude-pattern>*/Tools/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern> <exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern> <exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/OAuth2/*</exclude-pattern><!-- @todo: temporarily disabled--> <exclude-pattern>*/OAuth2/*</exclude-pattern><!-- @todo: temporarily disabled-->

View File

@ -16,6 +16,7 @@ parameters:
- */demoSetup/* - */demoSetup/*
- */d0cbb361b14ac3ef32486f0a09ab937d/* - */d0cbb361b14ac3ef32486f0a09ab937d/*
- */test/* - */test/*
- */Tools/*
- *Test.php - *Test.php
- *Routes.php - *Routes.php
- *Hooks.php - *Hooks.php

View File

@ -1,4 +1,5 @@
<?php declare(strict_types=1); <?php
declare(strict_types=1);
return [ return [
// keys which start with `:` are considered localized strings used in the template not for the report. // keys which start with `:` are considered localized strings used in the template not for the report.

View File

@ -1,4 +1,5 @@
<?php declare(strict_types=1); <?php
declare(strict_types=1);
\ini_set('display_errors', 1); \ini_set('display_errors', 1);
\ini_set('display_startup_errors', 1); \ini_set('display_startup_errors', 1);
\error_reporting(\E_ALL); \error_reporting(\E_ALL);

View File

@ -1,4 +1,5 @@
<?php declare(strict_types=1); <?php
declare(strict_types=1);
$postBody = $_POST['payload'] ?? ''; $postBody = $_POST['payload'] ?? '';
$payload = \json_decode($postBody, true); $payload = \json_decode($postBody, true);

View File

@ -1,3 +1,4 @@
<?php declare(strict_types=1); <?php
declare(strict_types=1);
\phpinfo(); \phpinfo();