-
Notifications
You must be signed in to change notification settings - Fork 144
[TASK] Add Tests for Document::getAllDeclarationBlocks()
#956
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
Conversation
1a44e9b
to
a1accfb
Compare
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.
The tests look fine. But I find them difficult to follow because I can't immediately see how $this->subject
has been setUp()
. Would it perhaps be clearer for the subject to be set up on a per-test basis? And maybe a separate pre-PR to remove the setUp()
method, which I don't think is warranted.
a1accfb
to
245d68a
Compare
Done: #963 |
245d68a
to
e822151
Compare
Updated an repushed. |
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.
I think a test method name should not include 'also', and that it would be better to provide non-empty strings which are ideally real-world examples for URL and charset. Otherwise fine.
9651087
to
7fac016
Compare
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.
The method name issue does not seem to be resolved.
Also remove a misleading and incorrect comment. Part of #757
7fac016
to
997eaf7
Compare
Indeed. My bad. Done. |
Also remove a misleading and incorrect comment.
Part of #757