mirror of
https://github.com/yswery/PHP-DNS-SERVER.git
synced 2026-04-26 01:35:57 +03:00
[PR #56] [MERGED] Encoder decoder #73
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#73
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/56
Author: @samuelwilliams
Created: 9/8/2018
Status: ✅ Merged
Merged: 9/15/2018
Merged by: @samuelwilliams
Base:
master← Head:EncoderDecoder📝 Commits (10+)
eaad30dSeparated encode methods to separate static class "Encoder".f274ceeSeparated decode methods. Removed encode and decode methods from Server class.954dee9Code simplification.4d2af07New test for decodeQuestionResourceRecord().c29b89eMerge branch 'master' of https://github.com/samuelwilliams/PHP-DNS-SERVER into EncoderDecoder41164ccUpdated PHPUnit to 5.73bdd27eComposer requires ext-json.587b473Removed deprecated functions.6fdf3b6Merge branch 'master' of https://github.com/yswery/PHP-DNS-SERVER into EncoderDecoderf5e2851Use earlier version of JSON ext.📊 Changes
13 files changed (+754 additions, -586 deletions)
View changed files
📝
.coveralls.yml(+1 -1)📝
.gitignore(+1 -0)📝
.travis.yml(+2 -2)📝
composer.json(+4 -3)➖
phpunit.xml(+0 -24)➕
phpunit.xml.dist(+29 -0)➕
src/Decoder.php(+162 -0)➕
src/Encoder.php(+140 -0)📝
src/Server.php(+41 -319)➕
tests/DecoderTest.php(+183 -0)➕
tests/EncoderTest.php(+168 -0)📝
tests/JsonResolverTest.php(+20 -8)📝
tests/ServerTest.php(+3 -229)📄 Description
Separates the Encoder and Decoder methods from the server class which has enabled increased unit testing. This has enabled much safer changes to the code.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.