Skip to content

Commit 4af99e7

Browse files
committed
Merge branch '4.2'
* 4.2: fixing parsing Update event_dispatcher.rst Update testing.rst to be compatible with windows Fix of old service ids styles to class name
2 parents 156eb9b + 4373cc1 commit 4af99e7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

components/event_dispatcher.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ order. Start by creating this custom event class and documenting it::
262262
*/
263263
class OrderPlacedEvent extends Event
264264
{
265-
const NAME = 'order.placed';
265+
public const NAME = 'order.placed';
266266

267267
protected $order;
268268

testing.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,13 @@ You can also limit a test run to a directory or a specific test file:
109109
.. code-block:: terminal
110110
111111
# run all tests of the application
112-
$ ./bin/phpunit
112+
$ php bin/phpunit
113113
114114
# run all tests in the Util/ directory
115-
$ ./bin/phpunit tests/Util
115+
$ php bin/phpunit tests/Util
116116
117117
# run tests for the Calculator class
118-
$ ./bin/phpunit tests/Util/CalculatorTest.php
118+
$ php bin/phpunit tests/Util/CalculatorTest.php
119119
120120
.. index::
121121
single: Tests; Functional tests

0 commit comments

Comments
 (0)