mirror of
https://github.com/yswery/PHP-DNS-SERVER.git
synced 2026-04-26 09:45:54 +03:00
[PR #24] [MERGED] Added tests for the server class. #54
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#54
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?
📋 Pull Request Information
Original PR: https://github.com/yswery/PHP-DNS-SERVER/pull/24
Author: @samuelwilliams
Created: 4/24/2017
Status: ✅ Merged
Merged: 4/25/2017
Merged by: @yswery
Base:
master← Head:master📝 Commits (1)
19e70bdAdded tests for the server class.📊 Changes
3 files changed (+80 additions, -1 deletions)
View changed files
📝
composer.json(+2 -1)➕
tests/ServerTest.php(+40 -0)➕
tests/TestServerProxy.php(+38 -0)📄 Description
Started on creating unit tests for the Server class. Since pretty much all the methods are private, I have proxied the Server class in order to access the methods directly.
This is not an ideal solution, but it enables deeper testing (and therefore safer refactoring) without hacking the API.
As I raised in issue #23, it would be better to separate the encoder and decoder methods.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.