Commit Graph

299 Commits

Author SHA1 Message Date
Dave Longley f058cbee52 Fix test docs. 2013-09-16 13:27:49 -04:00
Dave Longley 1ddb1fc23b Update test command in README. 2013-09-16 13:25:47 -04:00
Dave Longley 907904183d Provide access to test result via test instead of earl report.
- Reduces memory consumption because global state is serialized
  for every test and the test result is large (do not link it to
  the earl report listener as it is global).
2013-09-15 16:19:22 -04:00
Dave Longley 3f4dc75ac5 Do not attach earl report as listener if no filename specified. 2013-09-15 16:01:10 -04:00
Dave Longley d59ffc65bf Implement http link header processing w/default document loader.
- Use default document loader when testing remote documents.
2013-09-15 15:54:54 -04:00
Dave Longley bf08dd1e3d Remove old test runner. 2013-09-15 00:24:50 -04:00
Dave Longley cf687f9c70 Use phpunit to run tests. 2013-09-15 00:24:40 -04:00
Dave Longley b1920c1ae6 Use JsonLdExceptions, include JsonLdError codes. 2013-09-15 00:24:09 -04:00
Dave Longley f84cf6c2fc Read quads (do not use url). 2013-09-15 00:16:18 -04:00
Dave Longley 0e37dd4388 Make earl report a test result printer. 2013-09-14 22:19:07 -04:00
Dave Longley 86908c8e4f Fix typo. 2013-09-14 22:10:35 -04:00
Dave Longley 7142d8a3e1 Fix typos. 2013-09-14 22:02:37 -04:00
Dave Longley 0cf39870f5 Only shallow copy options. 2013-09-14 21:43:35 -04:00
Dave Longley ded32019d7 Fix parenthesis. 2013-09-14 21:33:34 -04:00
Dave Longley 7099ce5d80 Fix typo. 2013-09-14 21:29:23 -04:00
Dave Longley 4ddb4e8c2c Validate URLs; check for file/json read errors. 2013-09-14 21:27:55 -04:00
Dave Longley d85c25bdb3 Improve failed test output; fix typo. 2013-09-14 21:08:40 -04:00
Dave Longley 77dc82bdb5 Fix typo. 2013-09-14 21:08:01 -04:00
Dave Longley 780ed7e6ab Use input url not doc; use link header parsed result as an object. 2013-09-14 14:46:00 -04:00
Dave Longley 5566889660 Fix link header parsing bugs. 2013-09-14 14:45:41 -04:00
Dave Longley d27ad5f210 Use remote doc documentUrl as base. 2013-09-14 14:19:27 -04:00
Dave Longley 5eeb29a9d2 Fix typos. 2013-09-14 14:14:26 -04:00
Dave Longley 4685958cbf Fix remote document loading bugs. 2013-09-14 14:12:19 -04:00
Dave Longley 42041d08c7 Fix parenthesis. 2013-09-14 14:00:32 -04:00
Dave Longley c884d39621 Add more error codes, fix error params. 2013-09-14 13:58:40 -04:00
Dave Longley 2a2cf85be9 Add missing semicolon. 2013-09-14 13:43:50 -04:00
Dave Longley c5f9d1963a Add term definition error codes, etc. 2013-09-14 13:42:15 -04:00
Dave Longley 60c335a6e9 Support more error conditions in expand. 2013-09-13 16:42:10 -04:00
Dave Longley 12a9ccc9e8 Handle scalars before objects. 2013-09-13 13:17:40 -04:00
Dave Longley d1501c7c08 Do not output relative IRIs in RDF datasets. 2013-09-13 13:16:10 -04:00
Dave Longley 944e9ee886 Add link header parse method. 2013-09-13 13:07:18 -04:00
Dave Longley 82e93347c1 Fix typo. 2013-09-13 13:07:05 -04:00
Dave Longley f5eeb7c3ad Rewrite test runner.
- Use PHPUnit. There are many different ways to use PHPUnit,
  unfortunately, none of them seem to fit quite right with
  the JSON-LD test suite -- without requiring a lot of extra
  and/or duplicated effort. A middle ground was chosen.
2013-09-13 12:47:15 -04:00
Dave Longley 9ca43c5a40 Remove closure for php 5.3 compatibility. 2013-08-09 14:19:41 -04:00
Dave Longley 7b937b3fdc Fix closure bug. 2013-08-09 14:11:52 -04:00
Dave Longley 7a89570bd5 Fix language. 2013-08-09 14:10:32 -04:00
Dave Longley fdd5ef987f Use call_user_func. 2013-08-09 14:08:31 -04:00
Dave Longley 01f0f1440d Use array() syntax. 2013-08-09 13:55:54 -04:00
Dave Longley ac71cc01b8 Add travis-ci support. 2013-08-09 13:46:51 -04:00
Dave Longley ec6b4d7383 Fix type, check for datatype. 2013-08-09 13:42:31 -04:00
Dave Longley 7a67ebd0f8 Do not include (data)types in node map. 2013-08-09 13:33:14 -04:00
Dave Longley 281d8ee797 Add support for partial lists. 2013-08-09 13:32:26 -04:00
Dave Longley ff79a799ba Add $options param. 2013-08-06 14:07:21 -04:00
Dave Longley 83d974a06f Do not produce generalized RDF when normalizing. 2013-08-06 14:06:30 -04:00
Dave Longley 443df61b11 Exclude blank node predicates unless producing generalized RDF. 2013-08-06 14:02:08 -04:00
Dave Longley c0280e53e4 Add default base option. 2013-08-06 13:54:59 -04:00
Dave Longley 63d61f1c4d Bump version, fix docs, add produceGeneralizedRdf option. 2013-08-06 13:52:15 -04:00
Dave Longley 96e20e4afe Do not add subject-references at top-level. 2013-08-06 13:46:56 -04:00
Dave Longley 090183dccc Ensure expanded frame is properly traversed for @list. 2013-08-06 13:28:25 -04:00
Dave Longley 7c7b9ae3be Rename 'loadDocument' option to 'documentLoader'. 2013-07-24 16:05:22 -04:00