Testing
Make sure to run
composer install
first!
Command Line
vendor/bin/phpunit -c phpunit.xml.dist
PhpStorm
Based on PhpStorm 2017.2
- Set the project interpreter (php >= 7.1) Settings -> Languages & Frameworks -> PHP: CLI Interpreter
- Configure PHPUnit: Settings -> Languages & Frameworks -> PHP -> Test Frameworks:
- Add or Edit PHPUnit Local,
- Use Composer Autoloader
- Path to script:
<path_to_this_folder>/vendor/autoload.php
- Default configuration file:
<path_to_this_folder>/phpunit.xml
- Mark directory: Settings -> Directories:
- Mark
tests
folder as test - (optional): On the right sidebar edit properties and set package prefix to
Konekt\Address\Tests
- Mark
Example: