src/test/webapp.php: Use method DOMXPath->query instead of ->evaluate, as the former is guaranteed to return a DOMNodeList.
src/test/webapp.php: Add 'clearSession' method.
src/webapp/base-controller.php: Add @var type-definition comment for $context attribute.