Refactor Illuminate\Foundation\Application\TestCase to AssertionTrait and ApplicationTrait

This allow easier testing support for developer wanting to use testing facility other than PHPUnit such as Behat or etc.

Signed-off-by: crynobone <crynobone@gmail.com>
Added another missing throws annotation
Use pull instead of get and forget
Use cache get default value
Use cache get default value
Use array_pull for session pull
Use pull for session initializeLocalBag
Remove duplicate id check
Remove double if
Fix log typo in docblock
Better describe fundation testing calls
Merge pull request #5123 from lucasmichot/4.2-log-docblock

[4.2] Log : fix typo in docblock
Merge pull request #5122 from lucasmichot/4.2-remote

[4.2] Remote : remove double if
Merge pull request #5118 from lucasmichot/4.2-session-setid

[4.2] Session : remove duplicate id check
Fix property order.
Merge pull request #5116 from lucasmichot/4.2-session

[4.2] Session : use cache get default value
Merge pull request #5111 from lucasmichot/4.2-redirector-session-pull

[4.2] Router : in redirector, use session pull instead of get then forget
Update Route.php
Update Route.php
Merge pull request #5125 from lucasmichot/4.2-foundation-testing

[4.2] Foundation : better describe testing calls