J. King
2348786a92
Start on replacing Phake with Phony
4 years ago
J. King
76f70119fd
More work on scraping
4 years ago
J. King
097362881b
Tests for filtering during feed parsing
4 years ago
J. King
a4146ec129
Start on test for filtering during feed parsing
4 years ago
J. King
4f34b4ff29
Rule refactoring
- The Database class is now responsible for preparing rules
- Rules are now returned in an array keyed by user
- Empty strings are now passed through during rule preparation
4 years ago
J. King
6dba8aa66b
Fixes for rules
- Whitespace is now collapsed before evaluating rules
- Feed tests are fixed to retrieve a dumy set of rules
- Rule evaluation during feed parsing also filled out
4 years ago
J. King
669e17a1f6
Add ability to discover multiple feeds
4 years ago
J. King
bd650765e1
Generalize icon fetching tests
4 years ago
J. King
50fd127ac4
Test for icon fetching
4 years ago
J. King
bc53a2d24a
Style fixes
5 years ago
J. King
39a1895867
Refine and cover new Guzzle error handling
5 years ago
J. King
49d003082d
Fix problems with nicolus/picofeed
This involved multiple fixes to Picofeed itself, not all of which have
been merged upstream yet
5 years ago
J. King
b5f118e8cb
Cleanup
5 years ago
J. King
bbace7a0ac
Use void and nullable return types where practical
5 years ago
J. King
17a2fa96f8
Upgrade to PHPUnit 8
5 years ago
J. King
29667464a1
Remove unnecessary namespace imports
5 years ago
J. King
eb120b4629
Fetch in three hours if caching is via etag
5 years ago
J. King
7340d65c0e
Make data clearing in tests static
6 years ago
J. King
f22e53fdc9
Align result tests with driver tests
6 years ago
J. King
d40243a84c
Clean up configuration setting in tests
6 years ago
J. King
f64f0c6a22
Whitespace cleanup
6 years ago
J. King
095fe10aec
Reorganize PDO tests into namespaces
7 years ago
J. King
59fee52074
Reorganize tests into namespaces
7 years ago
J. King
183718204d
Grouped slow tests; improves #113
7 years ago
J. King
3adfe8742f
Reorganize test cases
7 years ago
J. King
11b2066922
Added per-file legal boilerplate
Includes PHPDoc license tag in the file-level block with accompanying copyright notice.
Also added an AUTHORS file on the off chance of outside contributions
7 years ago
J. King
97b0134e56
Merge master
7 years ago
J. King
a80e283abc
Perform feed discovery correctly; fixes #118
7 years ago
J. King
0a0aabe4ed
Merge master
7 years ago
J. King
3482a35e54
Implement feed discovery; fixes #110
7 years ago
J. King
f351dd059f
More CS fixes
7 years ago
J. King
f7e50fe95d
Passed code through linter
7 years ago
J. King
b3c65bcdbd
Tweak coverage of feed exceptions
7 years ago
J. King
cbdcacd1c3
Added basic code coverage annotations
7 years ago
J. King
aaa4d1e988
Basic support for PicoFeed content scraping
- At the moment this is a completely manual setting: feed deduplication makes the setting very hard to handle for multiple users
- Improves #60
7 years ago
J. King
da092d5f8c
Changed Misc\DateFormatter to a collection of static methods and renamed it to Date; renamed Data to Arsse to avoid confusion and better reflect its centrality
7 years ago
J. King
b3f631e335
Use more reliable database locking strategy; reorganize tests
PostgreSQL and MySQL both have better locking mechanisms than what was previously implemented, as well
7 years ago
J. King
17ec6cf669
Move date formatting out of SQL and standardize on the DateFormatter trait
Fixes #56
7 years ago
J. King
0ab6210214
Fix feed ID discovery so it doesn't short-circuit the item loop
7 years ago
J. King
ba61ca2b2c
Add category list to feed items
7 years ago
J. King
140d608f0f
Split feed fetching tests from feed parsing tests
Lack of curl should not skip all Feed tests, just those that require curl to be reliable.
7 years ago
J. King
b778e8eacd
Fix failing test
7 years ago
J. King
5b8f23441c
Feed tests: article matching
These should be the last required tests for the Feed class
7 years ago
J. King
3e5343e3e8
Feed tests: last set of next-fetch tests, with fixes
7 years ago
J. King
7656de716b
Feed tests: fetching and parsing
7 years ago
J. King
ff59f00356
Feed tests: deduplication
7 years ago
J. King
6771e8916a
Fixed more Feed bugs
- Two items with differing IDs but identical hashes were matching in the deduplicator; they shouldn't
- They would also match in the database matcher, and shouldn't
- The second-pass database matcher was overaggressively finding items as new
7 years ago
J. King
fd7d1c3192
Fixes to Feed class for bugs uncovered by initial deduplication tests
Three bugs:
- The parser wrapping was generating hashes for fallback values in absence of actual values for both URL and title (which is valid if obscure RSS), URL and content, or title and content; now fallback values are detected and empty strings used instead of hashes
- The deduplicator was assuming all three hashes would always exist, which is no longer the case
- The database matcher was making the same assumption as the deduplicator
7 years ago
J. King
148875c0dd
Last cache-handling Feed test
7 years ago
J. King
ed3e3c12d6
More Feed tests: more cache header handling
7 years ago