composer require --dev symfony/phpunit-bridge
This commit is contained in:
parent
4063461347
commit
d7dadacf0b
4
.env.test
Normal file
4
.env.test
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# define your env variables for the test env here
|
||||||
|
KERNEL_CLASS='App\Kernel'
|
||||||
|
APP_SECRET='s$cretf0rt3st'
|
||||||
|
SYMFONY_DEPRECATIONS_HELPER=999999
|
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -12,3 +12,8 @@
|
||||||
###> symfony/web-server-bundle ###
|
###> symfony/web-server-bundle ###
|
||||||
/.web-server-pid
|
/.web-server-pid
|
||||||
###< symfony/web-server-bundle ###
|
###< symfony/web-server-bundle ###
|
||||||
|
|
||||||
|
###> symfony/phpunit-bridge ###
|
||||||
|
.phpunit
|
||||||
|
/phpunit.xml
|
||||||
|
###< symfony/phpunit-bridge ###
|
||||||
|
|
19
bin/phpunit
Executable file
19
bin/phpunit
Executable file
|
@ -0,0 +1,19 @@
|
||||||
|
#!/usr/bin/env php
|
||||||
|
<?php
|
||||||
|
|
||||||
|
if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {
|
||||||
|
echo "Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\n";
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (false === getenv('SYMFONY_PHPUNIT_VERSION')) {
|
||||||
|
putenv('SYMFONY_PHPUNIT_VERSION=6.5');
|
||||||
|
}
|
||||||
|
if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {
|
||||||
|
putenv('SYMFONY_PHPUNIT_REMOVE=');
|
||||||
|
}
|
||||||
|
if (false === getenv('SYMFONY_PHPUNIT_DIR')) {
|
||||||
|
putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');
|
||||||
|
}
|
||||||
|
|
||||||
|
require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';
|
|
@ -36,6 +36,7 @@
|
||||||
"doctrine/doctrine-fixtures-bundle": "^3.1",
|
"doctrine/doctrine-fixtures-bundle": "^3.1",
|
||||||
"symfony/debug-pack": "^1.0",
|
"symfony/debug-pack": "^1.0",
|
||||||
"symfony/dotenv": "^4.2",
|
"symfony/dotenv": "^4.2",
|
||||||
|
"symfony/phpunit-bridge": "^4.2",
|
||||||
"symfony/profiler-pack": "^1.0",
|
"symfony/profiler-pack": "^1.0",
|
||||||
"symfony/web-server-bundle": "^4.2"
|
"symfony/web-server-bundle": "^4.2"
|
||||||
},
|
},
|
||||||
|
|
68
composer.lock
generated
68
composer.lock
generated
|
@ -4,7 +4,7 @@
|
||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "b2efcf2213eb068842d3ad2b85667014",
|
"content-hash": "fdd4f42890e074443a6a40e031864ff0",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "doctrine/annotations",
|
"name": "doctrine/annotations",
|
||||||
|
@ -5156,6 +5156,72 @@
|
||||||
],
|
],
|
||||||
"time": "2018-11-04T09:58:13+00:00"
|
"time": "2018-11-04T09:58:13+00:00"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "symfony/phpunit-bridge",
|
||||||
|
"version": "v4.2.2",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/symfony/phpunit-bridge.git",
|
||||||
|
"reference": "4d53b78ee50da242dffa4eb91ea1f0ee084945c5"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/4d53b78ee50da242dffa4eb91ea1f0ee084945c5",
|
||||||
|
"reference": "4d53b78ee50da242dffa4eb91ea1f0ee084945c5",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"php": ">=5.3.3"
|
||||||
|
},
|
||||||
|
"conflict": {
|
||||||
|
"phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0"
|
||||||
|
},
|
||||||
|
"suggest": {
|
||||||
|
"ext-zip": "Zip support is required when using bin/simple-phpunit",
|
||||||
|
"symfony/debug": "For tracking deprecated interfaces usages at runtime with DebugClassLoader"
|
||||||
|
},
|
||||||
|
"bin": [
|
||||||
|
"bin/simple-phpunit"
|
||||||
|
],
|
||||||
|
"type": "symfony-bridge",
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-master": "4.2-dev"
|
||||||
|
},
|
||||||
|
"thanks": {
|
||||||
|
"name": "phpunit/phpunit",
|
||||||
|
"url": "https://github.com/sebastianbergmann/phpunit"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"files": [
|
||||||
|
"bootstrap.php"
|
||||||
|
],
|
||||||
|
"psr-4": {
|
||||||
|
"Symfony\\Bridge\\PhpUnit\\": ""
|
||||||
|
},
|
||||||
|
"exclude-from-classmap": [
|
||||||
|
"/Tests/"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"MIT"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Nicolas Grekas",
|
||||||
|
"email": "p@tchwork.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Symfony Community",
|
||||||
|
"homepage": "https://symfony.com/contributors"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Symfony PHPUnit Bridge",
|
||||||
|
"homepage": "https://symfony.com",
|
||||||
|
"time": "2019-01-03T09:07:35+00:00"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/polyfill-php72",
|
"name": "symfony/polyfill-php72",
|
||||||
"version": "v1.10.0",
|
"version": "v1.10.0",
|
||||||
|
|
31
phpunit.xml.dist
Normal file
31
phpunit.xml.dist
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
|
||||||
|
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.5/phpunit.xsd"
|
||||||
|
backupGlobals="false"
|
||||||
|
colors="true"
|
||||||
|
bootstrap="config/bootstrap.php"
|
||||||
|
>
|
||||||
|
<php>
|
||||||
|
<ini name="error_reporting" value="-1" />
|
||||||
|
<env name="APP_ENV" value="test" />
|
||||||
|
<env name="SHELL_VERBOSITY" value="-1" />
|
||||||
|
</php>
|
||||||
|
|
||||||
|
<testsuites>
|
||||||
|
<testsuite name="Project Test Suite">
|
||||||
|
<directory>tests</directory>
|
||||||
|
</testsuite>
|
||||||
|
</testsuites>
|
||||||
|
|
||||||
|
<filter>
|
||||||
|
<whitelist>
|
||||||
|
<directory>src</directory>
|
||||||
|
</whitelist>
|
||||||
|
</filter>
|
||||||
|
|
||||||
|
<listeners>
|
||||||
|
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
|
||||||
|
</listeners>
|
||||||
|
</phpunit>
|
|
@ -242,6 +242,15 @@
|
||||||
"symfony/orm-pack": {
|
"symfony/orm-pack": {
|
||||||
"version": "v1.0.6"
|
"version": "v1.0.6"
|
||||||
},
|
},
|
||||||
|
"symfony/phpunit-bridge": {
|
||||||
|
"version": "4.1",
|
||||||
|
"recipe": {
|
||||||
|
"repo": "github.com/symfony/recipes",
|
||||||
|
"branch": "master",
|
||||||
|
"version": "4.1",
|
||||||
|
"ref": "0e548dd90adba18fabd4ef419b14d361fe4d6c74"
|
||||||
|
}
|
||||||
|
},
|
||||||
"symfony/polyfill-ctype": {
|
"symfony/polyfill-ctype": {
|
||||||
"version": "v1.10.0"
|
"version": "v1.10.0"
|
||||||
},
|
},
|
||||||
|
|
0
tests/.gitignore
vendored
Normal file
0
tests/.gitignore
vendored
Normal file
Loading…
Reference in a new issue