mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Updated phpunit-bridge recipe.
This commit is contained in:
parent
680297320b
commit
a12802c1ae
3 changed files with 17 additions and 7 deletions
|
@ -5,13 +5,14 @@
|
||||||
xsi:noNamespaceSchemaLocation="bin/.phpunit/phpunit.xsd"
|
xsi:noNamespaceSchemaLocation="bin/.phpunit/phpunit.xsd"
|
||||||
backupGlobals="false"
|
backupGlobals="false"
|
||||||
colors="true"
|
colors="true"
|
||||||
bootstrap="config/bootstrap.php"
|
bootstrap="tests/bootstrap.php"
|
||||||
>
|
>
|
||||||
<php>
|
<php>
|
||||||
<ini name="error_reporting" value="-1" />
|
<ini name="error_reporting" value="-1" />
|
||||||
<server name="APP_ENV" value="test" force="true" />
|
<server name="APP_ENV" value="test" force="true" />
|
||||||
<server name="SHELL_VERBOSITY" value="-1" />
|
<server name="SHELL_VERBOSITY" value="-1" />
|
||||||
<server name="SYMFONY_PHPUNIT_REMOVE" value="" />
|
<server name="SYMFONY_PHPUNIT_REMOVE" value="" />
|
||||||
|
<server name="SYMFONY_PHPUNIT_VERSION" value="7.5" />
|
||||||
</php>
|
</php>
|
||||||
|
|
||||||
<testsuites>
|
<testsuites>
|
||||||
|
@ -21,8 +22,8 @@
|
||||||
</testsuites>
|
</testsuites>
|
||||||
|
|
||||||
<filter>
|
<filter>
|
||||||
<whitelist>
|
<whitelist processUncoveredFilesFromWhitelist="true">
|
||||||
<directory>src</directory>
|
<directory suffix=".php">src</directory>
|
||||||
</whitelist>
|
</whitelist>
|
||||||
</filter>
|
</filter>
|
||||||
|
|
||||||
|
@ -32,6 +33,5 @@
|
||||||
|
|
||||||
<listeners>
|
<listeners>
|
||||||
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
|
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
|
||||||
<listener class="Symfony\Bridge\PhpUnit\CoverageListener" />
|
|
||||||
</listeners>
|
</listeners>
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
|
|
@ -637,14 +637,13 @@
|
||||||
"repo": "github.com/symfony/recipes",
|
"repo": "github.com/symfony/recipes",
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"version": "4.3",
|
"version": "4.3",
|
||||||
"ref": "170be6250b77b421f02e986e2853df86c7bd6516"
|
"ref": "6d0e35f749d5f4bfe1f011762875275cd3f9874f"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"./.env.test",
|
"./.env.test",
|
||||||
"./bin/phpunit",
|
"./bin/phpunit",
|
||||||
"./config/bootstrap.php",
|
|
||||||
"./phpunit.xml.dist",
|
"./phpunit.xml.dist",
|
||||||
"./tests/.gitignore"
|
"./tests/bootstrap.php"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"symfony/polyfill-ctype": {
|
"symfony/polyfill-ctype": {
|
||||||
|
|
11
tests/bootstrap.php
Normal file
11
tests/bootstrap.php
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
use Symfony\Component\Dotenv\Dotenv;
|
||||||
|
|
||||||
|
require dirname(__DIR__).'/vendor/autoload.php';
|
||||||
|
|
||||||
|
if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {
|
||||||
|
require dirname(__DIR__).'/config/bootstrap.php';
|
||||||
|
} elseif (method_exists(Dotenv::class, 'bootEnv')) {
|
||||||
|
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue