Created
October 13, 2017 21:39
-
-
Save deleugpn/bce3a037514deccaca9319699388dcbf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Creates the application. | |
| * | |
| * @return \Illuminate\Foundation\Application | |
| */ | |
| public function createApplication() | |
| { | |
| $app = require __DIR__.'/../bootstrap/app.php'; | |
| if ($app->configurationIsCached()) { | |
| throw new RuntimeException('Your configuration is cached. Any variable in phpunit.xml did not take effect.'); | |
| } | |
| $app->make(Kernel::class)->bootstrap(); | |
| $this->protectDatabase(); | |
| return $app; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment