Thanks for taking the time to contribute!
To clone this repository
$ git clone --recursive [email protected]:Automattic/amp-wp.git
The file class-amp-allowed-tags-generated.php
has the AMP specification's allowed tags and attributes. It's used in sanitization.
To update that file:
cd
to the root of this plugin- run
bash bin/amphtml-update.sh
That script is intended for a Linux environment like VVV.
Please run these tests in an environment with WordPress unit tests installed, like VVV.
Run tests:
$ phpunit
Run tests with an HTML coverage report:
$ phpunit --coverage-html /tmp/report
When you push a commit to your PR, Travis CI will run the PHPUnit tests and sniffs against the WordPress Coding Standards.