REST: Testable EntryPoint
authorTim Starling <tstarling@wikimedia.org>
Tue, 4 Jun 2019 23:59:57 +0000 (09:59 +1000)
committerTim Starling <tstarling@wikimedia.org>
Fri, 14 Jun 2019 07:01:15 +0000 (17:01 +1000)
commit4e0e36397c871ef0e26f54d695caf9b425c115e3
tree526e070d1fe4dd16a6454425c7640e7a603c3205
parentf1c11c2c49ef706b88e99c929cd8c62684b15167
REST: Testable EntryPoint

* Split EntryPoint into a static main() and a non-static execute()
* Add tests for execute()

Change-Id: I025356b04ddc5a16494f98c446d785d6bb05ab10
includes/Rest/EntryPoint.php
tests/phpunit/includes/Rest/EntryPointTest.php [new file with mode: 0644]
tests/phpunit/includes/Rest/Handler/HelloHandlerTest.php
tests/phpunit/includes/Rest/Handler/testRoutes.json [deleted file]
tests/phpunit/includes/Rest/testRoutes.json [new file with mode: 0644]