A helper for outputting values to PHP heredoc
composer require janisbiz/heredoc
These instructions will help you set up this helper, so you can use it. As well, there are provided instructions to run tests for the extension.
To use helper:
- your class should use trait HeredocTrait
- you should call global function ´heredoc()´
There are two ways to run tests:
- By using docker containers:
- Copy
.env.distto.envand adjust defined values for your needs - Execute
docker-compose up -d --build - Execute
docker-compose exec php-cli composer install - Execute
docker-compose exec php-cli vendor/bin/phpunit -c phpunit.xml
- Copy
- By using your local php and mysql database environment:
- Ensure, that your php version is
5.6+ - Execute
composer install - Execute
vendor/bin/phpunit -c phpunit.xml
- Ensure, that your php version is