Download the PHP package worksome/pretty-pest without Composer
On this page you can find all versions of the php package worksome/pretty-pest. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download worksome/pretty-pest
More information about worksome/pretty-pest
Files in worksome/pretty-pest
Package pretty-pest
Short Description Automatically format your Pest PHP tests.
License MIT
Informations about the package pretty-pest
Pretty Pest
Enforce consistent styling for your Pest PHP tests!
There are lots of important decisions to worry about as a developer. You know what you shouldn't be worrying about? The order of your tests! But you still want your tests to look nice, right?
That's why we created Pretty Pest. This code style plugin ensures that your Pest tests are automatically formatted correctly so that you don't have to spend time doing so manually.
Installation
You can install the package via composer.
PHPCBF
You can enable Pretty Pest in PHPCBF by adding the PrettyPest
rule to your phpcs.xml
file.
Pretty Pest has 2 sniffs for PHPCBF:
EnsureTestFunctionsAreOrdered
NewLineAfterTestFunctions
EnsureTestFunctionsAreOrdered
This sniff will ensure that your pest functions are ordered correctly in the test file. By default, we use the following order:
Any functions that are out of order will be moved in the file. Of course, you can always override this order to your preference in the phpcs.xml
file.
NewLineAfterTestFunctions
This sniff will replace all whitespace after a Pest function with a single new line to ensure that spacing in your test files is consistent.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
- Luke Downing
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of pretty-pest with dependencies
squizlabs/php_codesniffer Version ^3.8.1
dealerdirect/phpcodesniffer-composer-installer Version ^1.0