mirror of
https://github.com/yswery/PHP-DNS-SERVER.git
synced 2026-04-26 09:45:54 +03:00
[GH-ISSUE #23] Server not testable #8
Labels
No labels
bug
enhancement
enhancement
hacktoberfest
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/PHP-DNS-SERVER#8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @samuelwilliams on GitHub (Apr 17, 2017).
Original GitHub issue: https://github.com/yswery/PHP-DNS-SERVER/issues/23
The
Serverobject is not very testable in its current form. I would suggest separating the encoders and decoders into their own respective classes. Unit tests could then be developed to test and further develop the encoder and decoder methods. This would also serve to make theServerobject singularly responsible for handling the socket stream, therefore it would be less complex.@samuelwilliams commented on GitHub (Sep 4, 2018):
There is a new branch for the server unit tests. With the addition of the tests, bugs and errors are coming to light for which I have either fixed in this branch or raised issues.
@samuelwilliams commented on GitHub (Sep 7, 2018):
#55