[Security] Removed an unnecessary call to sprintf() and added a test case.
[Security] Added a test to the BasicAuthenticationListener.
[Security] Added tests for the ContextListener.
[Security] Added tests for the SwitchUserListener.
[Security] Added few new test cases for the HttpUtils and improved readability of existing tests.
[Config] Added tests for the ConfigCache.
[Config] Fixed @covers annotation which ignored some of the methods from the code coverage.
[Config] Added tests for the FileResource and DirectoryResource.
merged branch jakzal/2.3-more-security-tests (PR #8177)

This PR was merged into the 2.3 branch.

Discussion
----------

[Security] Added more tests

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Continuation of #8136

Commits
-------

5409852 [Security] Added few new test cases for the HttpUtils and improved readability of existing tests.
d6ab77e [Security] Added tests for the SwitchUserListener.
cccd005 [Security] Added tests for the ContextListener.
307bc91 [Security] Added a test to the BasicAuthenticationListener.
314f29a [Security] Removed an unnecessary call to sprintf() and added a test case.
merged branch jakzal/2.3-config-tests (PR #8178)

This PR was merged into the 2.3 branch.

Discussion
----------

[Config] Added few tests

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

804b182 [Config] Added tests for the FileResource and DirectoryResource.
c5dda79 [Config] Fixed @covers annotation which ignored some of the methods from the code coverage.
bf769e0 [Config] Added tests for the ConfigCache.