The information is for package contributors and those who are willing to contribute.
composer test- Go to
your-projectwithphp-converteralready installed. Add the following code to yourcomposer.json:
"repositories": [
{
"type": "path",
"url": "/Path/to/local/php-converter"
}
],
To find out the absolute path of your local php-converter repository run realpath . in the package directory
- Create a symbolic link by running
composer require "riverwaysoft/php-converter @dev" --dev
Show memory & time usage:
bin/php-converter --from=./ --to=./assets/ -v
Generate Xdebug profiler output:
php -d xdebug.mode=profile -d xdebug.output_dir=. bin/php-converter generate --from=./ --to=./assets/ -v -xdebug
Then open the result .cachegrind file in PHPStorm -> Tools -> Analyze XDebug Profiler Snapshot
- Run tests with code coverage:
composer run test:with-coverage - Check coverage level:
composer run test:coverage-level - Browser generated HTML report:
npm run coverage-server