- Remove vendor folder as well as composer.lock file
composer update
- Copy require-dev from symfony skeleton to package's composer.json's require-dev
composer require symfony/property-access --dev
composer require dama/doctrine-test-bundle --dev
composer req orm --dev
composer req test --dev
- Copy this block of code and paste it to composer.json under replace:
"paragonie/random_compat": "2.*",
"symfony/polyfill-ctype": "*",
"symfony/polyfill-iconv": "*",
"symfony/polyfill-php72": "*",
"symfony/polyfill-php71": "*",
"symfony/polyfill-php70": "*",
"symfony/polyfill-php56": "*"
- composer install
- Open .env.test.local paste these lines into it
DATABASE_URL="sqlite:///%kernel.project_dir%/var/app.db"
- Change the src folder name in services.yaml to src-symfony
- Add
"App\\": "src-symfony/",
to psr-4 under autoload-dev - Move generated folders and Kernel.php to src-symfony
- Copy the following snippet to doctrine.yaml under mappings configuration
Bean\Tests\Thing:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/tests/Doctrine/Orm'
prefix: 'Bean\Tests\Thing\Doctrine\Orm'
alias: App
- Make change to code
php bin/phpunit