-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[PHPUnit bridge] Add documentation for the component #6273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
05316b5
5fe6bf0
eb27c9b
ab94ab8
891d2ff
a912299
cf8b0c4
d38454b
bfe2e76
d5f7395
54001a8
57a1ce1
4a5c951
8b29f89
d7c2adc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ It comes with the following features: | |
|
||
* Forces the application to use the default language locale for output (set the | ||
locale to ``C``) | ||
* Auto-register `class_exists` to load Doctrine annotations (when used) | ||
* Auto-register ``class_exists`` to load Doctrine annotations (when used) | ||
* It displays the whole list of deprecated features used in the application | ||
* Display the stack trace of a deprecation on-demand. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Displays |
||
|
||
|
@@ -32,7 +32,7 @@ Usage | |
|
||
Once the component installed, it automatically registers a | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's simplify this:
by this:
|
||
`PHPUnit event listener`_ which in turn registers a `PHP error handler`_ | ||
called `DeprecationErrorHandler`. After running your PHPUnit tests again, you | ||
called ``DeprecationErrorHandler``. After running your PHPUnit tests again, you | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we can remove "again" here |
||
will get a report similar to this one: | ||
|
||
.. image:: /images/components/phpunit_bridge/report.png | ||
|
@@ -75,7 +75,7 @@ Configuration | |
In case you need to inspect the stack trace of a particular deprecation | ||
triggered by your unit tests, you can set the ``SYMFONY_DEPRECATIONS_HELPER`` | ||
`environment variable`_ to a regular expression that matches this deprecation's | ||
message, encapsed between `/`. For example, with: | ||
message, encapsed between ``/``. For example, with: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [...] enclosed with |
||
|
||
.. configuration-block:: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. YOu can remove this directive (it's only used when showing multiple formats of the same config, but PHPunit only supports XML) |
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about changing this to: "Forces the tests to use a consistent locale (
C
)"