Danack
b37ad10811
Added test where client is not set.
2014-07-24 12:53:10 +01:00
Danack
005d0710bb
Changed bbc test to use an array to be consistent with others, and also added note about test should check two IP addreses.
...
Added check that cname is returned when only cname is available.
2014-07-24 12:25:56 +01:00
Danack
ac8d451278
Merge commit '671cffe242beee453f272f1d143ee29d6027e2dd' into addedSamplePackets
...
* commit '671cffe242beee453f272f1d143ee29d6027e2dd':
Removed bogus check in test - there is still an issue so test is marked as skipped.
Added resolver tests.
Fix hosts file bug and tests
2014-07-24 11:35:03 +01:00
Danack
c9f86bbe7e
Added more tests for example packets.
2014-07-24 11:34:40 +01:00
Chris Wright
671cffe242
Merge pull request #11 from Danack/addResolverTest
...
Add resolver and ResponseInterpreter tests.
2014-07-23 23:32:41 +01:00
Danack
aab84bcef0
Removed bogus check in test - there is still an issue so test is marked as skipped.
2014-07-22 19:39:47 +01:00
Danack
8fdb86f655
Merge commit '3d81d18176b762191891de158dc04a1a59af6053' into addResolverTest
...
* commit '3d81d18176b762191891de158dc04a1a59af6053':
Fix hosts file bug and tests
Conflicts:
test/AddrTest/HostsFileTest.php
2014-07-22 19:34:47 +01:00
Danack
155d33475b
Added resolver tests.
2014-07-22 18:31:44 +01:00
Danack
06317638c6
Added hard-coded packet response to allow testing of the decoding.
2014-07-22 16:30:34 +01:00
Chris Wright
3d81d18176
Fix hosts file bug and tests
...
Thanks to @Danack
2014-07-22 16:18:26 +01:00
Chris Wright
585b5578e3
Cache refactoring
...
- pull $type back down into interface
- remove delete() from interface
- make get() async-capable
2014-07-22 02:54:23 +01:00
Chris Wright
2728ca6a37
Merge pull request #9 from Danack/addHostsTest
...
Added more tests
2014-07-21 23:12:40 +01:00
Danack
af5c817c01
Removed dead method call.
2014-07-21 23:08:03 +01:00
Danack
8ae5a4631b
Added hostsFile tests. Added check that caching is actually preventing additional lookups.
2014-07-21 22:56:48 +01:00
Chris Wright
a30ead4952
Whitespace and code style fixes
...
I am anal. I am also sorry. Deal with it.
2014-07-21 17:48:36 +01:00
Chris Wright
8eaa4f33a5
Merge pull request #8 from Danack/danackSquashTest
...
Danack squash test
2014-07-21 14:57:32 +01:00
Danack
ca150f4093
Changed to project standard bracket placement. Moved AddrCache to Addr\Cache. Refactored to use 'use', added not about running tests to readme. Moved travis badge to point at main repo.
2014-07-21 14:12:51 +01:00
Danack
a50369e71e
Tests, Travis and Cache implementations
...
- Add tests
- Configure repo for use with Travis
- Add some more Cache implementations
2014-07-21 12:24:35 +01:00
Chris Wright
10bd03789c
Fix memory cache lookup handling
2014-07-20 00:15:33 +01:00
Chris Wright
6df50e2fc8
Fix undefined reference in async cache handling
2014-07-18 01:11:40 +01:00
Chris Wright
d74f8c9a10
Make caching API asynchronous
...
Closes #5
2014-07-18 01:07:01 +01:00
Chris Wright
361e207d1f
Merge branch '0.2'
2014-07-18 00:19:14 +01:00
Chris Wright
6fcf8b4d07
Check for errors when writing to socket
...
Fix for #3
2014-07-18 00:18:58 +01:00
Chris Wright
7960dc0e69
Merge branch '0.2'
2014-07-17 21:33:17 +01:00
Chris Wright
0cf046c2c5
Merge branch '0.1' into 0.2
2014-07-17 21:32:59 +01:00
Mateusz Nowak
add4e38c1c
Prevent from crashes when url doesn't exists
...
Cherry picked from 3655b79..0d62434
2014-07-17 21:31:55 +01:00
Chris Wright
d91f47a017
Partial implementation for #6
2014-07-17 21:07:24 +01:00
Chris Wright
d4257d132f
Merge branch '0.1' into 0.2
2014-06-17 18:06:25 +01:00
Chris Wright
22c90049f3
Handle CNAME resource records correctly
2014-06-17 18:01:10 +01:00
Chris Wright
01b3d38c43
Move caching layer into client
2014-06-16 18:30:28 +01:00
Chris Wright
f60ac3fc5e
Merge branch '0.1' into 0.2
2014-06-16 17:48:38 +01:00
Chris Wright
5a5610a0de
Validate name format in private method
2014-06-16 17:47:51 +01:00
Chris Wright
8699d67081
Merge branch '0.1' into 0.2
2014-06-16 03:55:10 +01:00
Chris Wright
6174dfdb25
Call cache store callback before lookup callbacks
2014-06-16 03:53:40 +01:00
Chris Wright
dce47d6a83
Merge branch '0.1' into 0.2
2014-06-16 03:32:14 +01:00
Chris Wright
8e82108197
Allow reusing of outstanding requests
...
Refactoring to ensure only one concurrent request is sent to the server for a unique name/type tuple
2014-06-16 03:28:59 +01:00
Chris Wright
f7e199ff75
Rename request -> lookup in client
2014-06-16 01:30:28 +01:00
Chris Wright
dd39ab1fef
Merge branch '0.1' into 0.2
2014-06-16 01:20:59 +01:00
Chris Wright
32d52285e1
Make outstanding request struct associative
2014-06-16 01:20:38 +01:00
Chris Wright
f8b44f24ac
Allow injecting of cache through factory
2014-06-15 23:36:17 +01:00
Chris Wright
4ab6ecc2be
Extract Cache to an interface
2014-06-15 22:52:02 +01:00
Chris Wright
f4cd031352
Move Client default values out of arg default value list
...
Allows constructor args to be skipped with null
2014-06-15 22:45:33 +01:00
Chris Wright
e76cae16a8
Remove .idea and add .gitignore
2014-06-15 20:14:36 +01:00
Chris Wright
661a450c06
Fix composer.json autoloader spec
2014-06-15 01:06:54 +01:00
Chris Wright
d5b5192ba3
Finished initial implementation
...
zOMG too many things to document
2014-06-15 00:47:15 +01:00
Chris Wright
1d418d3e82
Initial commit
...
WIP
2014-06-13 18:17:49 +01:00