MDL-49497 curl: keep api private and test it using reflection.
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 23 Jun 2015 13:34:19 +0000 (15:34 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 23 Jun 2015 15:20:20 +0000 (17:20 +0200)
commit9a1adda5850338b90a9884746580b2aa134fc46d
tree59cd0550eb1e76bb36a6e3e302d6bfa2ce91b8b2
parentcbb7c6a905d63209f70981a4324bdee5eb918c6f
MDL-49497 curl: keep api private and test it using reflection.

While strictly we should not be testing private APIs, in order
to get this backported to stables without changing visibility
we use reflection to access to such private properties and methods.

Also added one exttest to verify user agent is properly sent.

Finally, fix some wrong whitespace and changed the helper class name
to better alternative.
lib/filelib.php
lib/tests/filelib_test.php