[PR #4] [MERGED] Testing #41

Closed
opened 2026-03-04 23:24:00 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/yswery/PHP-DNS-SERVER/pull/4
Author: @codenamegary
Created: 11/20/2014
Status: Merged
Merged: 11/20/2014
Merged by: @yswery

Base: masterHead: testing


📝 Commits (6)

  • 28b8081 A utility class, very helpful for testing and will probably be useful for other things as well.
  • 54b4344 Base testing framework and a test for the JsonStorageProvider. Just one simple test inside, should add tests for all supported record types and also test for failures.
  • 39911bc Ignoring local dev file.
  • 213643d README update with info about installing PHPUnit and running tests.
  • f9e0d40 Added travis yml for automated testing against various versions.
  • c4accdd Adding config for coveralls coverage reporting.

📊 Changes

12 files changed (+200 additions, -1 deletions)

View changed files

.coveralls.yml (+3 -0)
📝 .gitignore (+1 -0)
.travis.yml (+11 -0)
📝 README.md (+6 -0)
📝 composer.json (+2 -1)
phpunit (+2 -0)
phpunit.xml (+8 -0)
src/RecordTypeEnum.php (+64 -0)
tests/JsonStorageProviderTest.php (+36 -0)
tests/bootstrap.php (+3 -0)
tests/clover.xml (+52 -0)
tests/test_records.json (+12 -0)

📄 Description

I've added some base setup for testing. I created one simple test for the JsonStorageProvider and also added Travis CI config so you can automate the testing whenever the repo is pushed. Tests against 5.3+ and also hhvm which passes as well. hhvm is a minor concern but interesting to test against.

https://travis-ci.org/codenamegary/PHP-DNS-SERVER

Lots more tests to add, but the base is there now with a simple bootstrap so that we can just start adding more and more tests.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/yswery/PHP-DNS-SERVER/pull/4 **Author:** [@codenamegary](https://github.com/codenamegary) **Created:** 11/20/2014 **Status:** ✅ Merged **Merged:** 11/20/2014 **Merged by:** [@yswery](https://github.com/yswery) **Base:** `master` ← **Head:** `testing` --- ### 📝 Commits (6) - [`28b8081`](https://github.com/yswery/PHP-DNS-SERVER/commit/28b8081929fd2ebf52417e40da4f95d4f0e67436) A utility class, very helpful for testing and will probably be useful for other things as well. - [`54b4344`](https://github.com/yswery/PHP-DNS-SERVER/commit/54b43448cd445131828659c9563210947b785146) Base testing framework and a test for the JsonStorageProvider. Just one simple test inside, should add tests for all supported record types and also test for failures. - [`39911bc`](https://github.com/yswery/PHP-DNS-SERVER/commit/39911bcbac7b1d9cb394ef2c9b8bb833c590ae70) Ignoring local dev file. - [`213643d`](https://github.com/yswery/PHP-DNS-SERVER/commit/213643d2224dd37f636ae56eb3a863ec64fed70a) README update with info about installing PHPUnit and running tests. - [`f9e0d40`](https://github.com/yswery/PHP-DNS-SERVER/commit/f9e0d40eb4be92ad87ca03042f6a33ff023e2dfa) Added travis yml for automated testing against various versions. - [`c4accdd`](https://github.com/yswery/PHP-DNS-SERVER/commit/c4accdd0836804e470899b65138172a5688bac88) Adding config for coveralls coverage reporting. ### 📊 Changes **12 files changed** (+200 additions, -1 deletions) <details> <summary>View changed files</summary> ➕ `.coveralls.yml` (+3 -0) 📝 `.gitignore` (+1 -0) ➕ `.travis.yml` (+11 -0) 📝 `README.md` (+6 -0) 📝 `composer.json` (+2 -1) ➕ `phpunit` (+2 -0) ➕ `phpunit.xml` (+8 -0) ➕ `src/RecordTypeEnum.php` (+64 -0) ➕ `tests/JsonStorageProviderTest.php` (+36 -0) ➕ `tests/bootstrap.php` (+3 -0) ➕ `tests/clover.xml` (+52 -0) ➕ `tests/test_records.json` (+12 -0) </details> ### 📄 Description I've added some base setup for testing. I created one simple test for the JsonStorageProvider and also added Travis CI config so you can automate the testing whenever the repo is pushed. Tests against 5.3+ and also hhvm which passes as well. hhvm is a minor concern but interesting to test against. https://travis-ci.org/codenamegary/PHP-DNS-SERVER Lots more tests to add, but the base is there now with a simple bootstrap so that we can just start adding more and more tests. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 23:24:00 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/PHP-DNS-SERVER#41
No description provided.