Permalink
Browse files

Merge pull request #526 from ianmacl/github

Refactored JHttp class that supports CURL, sockets and streams, and a Github library
  • Loading branch information...
2 parents 9e20bde + 146ebc8 commit 53ae34b7b8fdac91d8826bf2d12e53692e0240f8 @eddieajau eddieajau committed Nov 23, 2011
Showing with 9,990 additions and 602 deletions.
  1. +7 −0 docs/manual/chapters/testing.xml
  2. +0 −390 libraries/joomla/client/http.php
  3. +594 −0 libraries/joomla/github/gists.php
  4. +152 −0 libraries/joomla/github/github.php
  5. +74 −0 libraries/joomla/github/http.php
  6. +430 −0 libraries/joomla/github/issues.php
  7. +89 −0 libraries/joomla/github/object.php
  8. +585 −0 libraries/joomla/github/pulls.php
  9. +167 −0 libraries/joomla/github/refs.php
  10. +186 −0 libraries/joomla/http/http.php
  11. +38 −0 libraries/joomla/http/response.php
  12. +45 −0 libraries/joomla/http/transport.php
  13. +3,721 −0 libraries/joomla/http/transport/cacert.pem
  14. +183 −0 libraries/joomla/http/transport/curl.php
  15. +253 −0 libraries/joomla/http/transport/socket.php
  16. +180 −0 libraries/joomla/http/transport/stream.php
  17. +1 −0 tests/config.dist.php
  18. +0 −55 tests/suite/joomla/client/JHttpInspector.php
  19. +0 −157 tests/suite/joomla/client/JHttpTest.php
  20. +1,084 −0 tests/suite/joomla/github/JGithubGistsTest.php
  21. +77 −0 tests/suite/joomla/github/JGithubHttpTest.php
  22. +480 −0 tests/suite/joomla/github/JGithubIssuesTest.php
  23. +84 −0 tests/suite/joomla/github/JGithubObjectTest.php
  24. +714 −0 tests/suite/joomla/github/JGithubPullsTest.php
  25. +245 −0 tests/suite/joomla/github/JGithubRefsTest.php
  26. +139 −0 tests/suite/joomla/github/JGithubTest.php
  27. +33 −0 tests/suite/joomla/github/stubs/JGithubObjectMock.php
  28. +203 −0 tests/suite/joomla/http/JHttpTest.php
  29. +172 −0 tests/suite/joomla/http/JHttpTransportTest.php
  30. +53 −0 tests/suite/stubs/jhttp_stub.php
  31. +1 −0 tests/tmp/gittest
@@ -133,4 +133,11 @@ class JClassInspector extends JControllerForm
For example, for the example above, the file would be named 'JClassInspector.php'.</para>
</sect2>
</sect1>
+ <sect1>
+ <title>Setting Up the JHttpTransport Test Stubs</title>
+
+ <para>There is a special stub that is required for testing the JHttp transports so that actual web requests can be simulated
+ and assertions can be made about the results. To set these up, copy the file jhttp_stub.php to a web server and add the address
+ to your config file with the config variable <code>$jhttp_stub</code>.</para>
+ </sect1>
</preface>
Oops, something went wrong.

0 comments on commit 53ae34b

Please sign in to comment.