Skip to content

Commit

Permalink
Merge pull request #1035 from baijunyao/master
Browse files Browse the repository at this point in the history
Update class_constants.rst
  • Loading branch information
davedevelopment committed Jan 16, 2020
2 parents f69bbde + 368474c commit 46fadaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/cookbook/class_constants.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ When creating a test double for a class, Mockery does not create stubs out of
any class constants defined in the class we are mocking. Sometimes though, the
non-existence of these class constants, setup of the test, and the application
code itself, it can lead to undesired behavior, and even a PHP error:
``PHP Fatal error: Uncaught Error: Undefined class constant 'FOO' in ...```
``PHP Fatal error: Uncaught Error: Undefined class constant 'FOO' in ...``

While supporting class constants in Mockery would be possible, it does require
an awful lot of work, for a small number of use cases.
Expand Down

0 comments on commit 46fadaa

Please sign in to comment.