Navigation Menu

Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
10. Bootstrapping a Test Suite (solving dependencies problem)
Browse files Browse the repository at this point in the history
- copy bin/phpunit, composer.json, composer.lock and phpunit.xml.dist from /finish
- composer install
- php bin/phpunit
  • Loading branch information
atournayre committed Jul 14, 2021
1 parent f8f5133 commit be777c3
Show file tree
Hide file tree
Showing 6 changed files with 1,366 additions and 59 deletions.
13 changes: 13 additions & 0 deletions bin/phpunit
@@ -0,0 +1,13 @@
#!/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 (false === getenv('SYMFONY_PHPUNIT_DIR')) {
putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');
}

require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';
6 changes: 5 additions & 1 deletion composer.json
Expand Up @@ -13,6 +13,8 @@
"symfony/dotenv": "4.3.*",
"symfony/flex": "^1.1",
"symfony/framework-bundle": "4.3.*",
"symfony/http-client": "4.3.*",
"symfony/monolog-bundle": "^3.4",
"symfony/webpack-encore-bundle": "^1.6",
"symfony/yaml": "4.3.*"
},
Expand Down Expand Up @@ -63,7 +65,9 @@
}
},
"require-dev": {
"hautelook/alice-bundle": "^2.5",
"symfony/maker-bundle": "^1.11",
"symfony/profiler-pack": "^1.0"
"symfony/profiler-pack": "^1.0",
"symfony/test-pack": "^1.0"
}
}

0 comments on commit be777c3

Please sign in to comment.