Skip to content

Commit

Permalink
updating composer.json and fixing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-blom committed Nov 3, 2022
1 parent 27c79ae commit 7249d72
Show file tree
Hide file tree
Showing 22 changed files with 2,895 additions and 2,359 deletions.
14 changes: 2 additions & 12 deletions .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,5 @@
KERNEL_CLASS='App\Kernel'
APP_SECRET='$ecretf0rt3st'
SYMFONY_DEPRECATIONS_HELPER=999999

###> doctrine/doctrine-bundle ###
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
# Configure your db driver and server_version in config/packages/doctrine.yaml
DATABASE_URL="sqlite:///%kernel.project_dir%/var/app_test.db"
###< doctrine/doctrine-bundle ###

###> application settings ###
PUT_TOKEN=$ecretf0rt3st
DELETE_TOKEN=$ecretf0rt3st
###< application settings ###
PANTHER_APP_ENV=panther
PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots
11 changes: 5 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@

.idea
infection.log

###> symfony/phpunit-bridge ###
.phpunit
/phpunit.xml
###< symfony/phpunit-bridge ###

###> squizlabs/php_codesniffer ###
/.phpcs-cache
/phpcs.xml
###< squizlabs/php_codesniffer ###

###> symfony/phpunit-bridge ###
.phpunit.result.cache
/phpunit.xml
###< symfony/phpunit-bridge ###
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ notifications:
email: false

php:
- "7.2"
- "7.3"
- "7.4"
- "8.0"
- "8.1"

install:
- composer install
Expand Down
20 changes: 13 additions & 7 deletions bin/phpunit
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
#!/usr/bin/env php
<?php

if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {
echo "Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\n";
exit(1);
if (!ini_get('date.timezone')) {
ini_set('date.timezone', 'UTC');
}

if (false === getenv('SYMFONY_PHPUNIT_DIR')) {
putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');
}
if (is_file(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) {
define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');
require PHPUNIT_COMPOSER_INSTALL;
PHPUnit\TextUI\Command::main();
} else {
if (!is_file(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {
echo "Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\n";
exit(1);
}

require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';
require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';
}
43 changes: 26 additions & 17 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,43 @@
"type": "project",
"license": "MIT",
"require": {
"php": "^7.2",
"php": "^8.0",
"ext-ctype": "*",
"ext-iconv": "*",
"ocramius/package-versions": "1.4.2",
"doctrine/doctrine-bundle": "^2.7",
"doctrine/doctrine-migrations-bundle": "^3.2",
"doctrine/orm": "^2.13",
"ocramius/package-versions": "2.6.0",
"symfony/apache-pack": "^1.0",
"symfony/console": "4.4.*",
"symfony/dotenv": "4.4.*",
"symfony/flex": "^1.3.1",
"symfony/framework-bundle": "4.4.*",
"symfony/orm-pack": "^1.0",
"symfony/yaml": "4.4.*"
"symfony/console": "5.4.*",
"symfony/dotenv": "5.4.*",
"symfony/flex": "^2.2",
"symfony/framework-bundle": "5.4.*",
"symfony/proxy-manager-bridge": "5.4.*",
"symfony/yaml": "5.4.*"
},
"require-dev": {
"phpmd/phpmd": "^2.6",
"phpstan/phpstan": "^0.11.12",
"squizlabs/php_codesniffer": "^3.4",
"symfony/maker-bundle": "^1.12",
"symfony/test-pack": "^1.0",
"infection/infection": "^0.14.2"
"infection/infection": "^0.26.16",
"phpmd/phpmd": "^2.13",
"phpstan/phpstan": "^1.8.11",
"squizlabs/php_codesniffer": "^3.7",
"symfony/browser-kit": "5.4.*",
"symfony/css-selector": "5.4.*",
"symfony/maker-bundle": "^1.47",
"symfony/phpunit-bridge": "^6.1"
},
"config": {
"preferred-install": {
"*": "dist"
},
"platform": {
"php": "7.2.15"
"php": "8.1.11"
},
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"infection/extension-installer": true,
"symfony/flex": true
}
},
"autoload": {
"psr-4": {
Expand Down Expand Up @@ -89,7 +98,7 @@
"extra": {
"symfony": {
"allow-contrib": false,
"require": "4.4.*"
"require": "5.4.*"
}
}
}
Loading

0 comments on commit 7249d72

Please sign in to comment.