-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve laravel 8 testing (application stub & version detection)
- Loading branch information
1 parent
0f3394d
commit cdade69
Showing
2 changed files
with
222 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,199 @@ | ||
<?php | ||
|
||
namespace Dingo\Api\Tests\Stubs; | ||
|
||
use Illuminate\Container\Container; | ||
use Illuminate\Contracts\Foundation\Application; | ||
|
||
class Application8Stub extends Container implements Application | ||
{ | ||
public function version() | ||
{ | ||
return 'v1'; | ||
} | ||
|
||
public function basePath($path = '') | ||
{ | ||
// | ||
} | ||
|
||
public function bootstrapPath($path = '') | ||
{ | ||
// | ||
} | ||
|
||
public function configPath($path = '') | ||
{ | ||
// | ||
} | ||
|
||
public function databasePath($path = '') | ||
{ | ||
// | ||
} | ||
|
||
public function environmentPath() | ||
{ | ||
// | ||
} | ||
|
||
public function resourcePath($path = '') | ||
{ | ||
// | ||
} | ||
|
||
public function storagePath() | ||
{ | ||
// | ||
} | ||
|
||
public function environment(...$environments) | ||
{ | ||
return 'testing'; | ||
} | ||
|
||
public function runningInConsole() | ||
{ | ||
// | ||
} | ||
|
||
public function runningUnitTests() | ||
{ | ||
// TODO: Implement runningUnitTests() method. | ||
} | ||
|
||
public function isDownForMaintenance() | ||
{ | ||
return false; | ||
} | ||
|
||
public function registerConfiguredProviders() | ||
{ | ||
// | ||
} | ||
|
||
public function register($provider, $options = [], $force = false) | ||
{ | ||
// | ||
} | ||
|
||
public function registerDeferredProvider($provider, $service = null) | ||
{ | ||
// | ||
} | ||
|
||
public function resolveProvider($provider) | ||
{ | ||
// | ||
} | ||
|
||
public function boot() | ||
{ | ||
// | ||
} | ||
|
||
public function booting($callback) | ||
{ | ||
// | ||
} | ||
|
||
public function booted($callback) | ||
{ | ||
// | ||
} | ||
|
||
public function bootstrapWith(array $bootstrappers) | ||
{ | ||
// | ||
} | ||
|
||
public function configurationIsCached() | ||
{ | ||
// | ||
} | ||
|
||
public function detectEnvironment(\Closure $callback) | ||
{ | ||
// | ||
} | ||
|
||
public function environmentFile() | ||
{ | ||
// | ||
} | ||
|
||
public function environmentFilePath() | ||
{ | ||
// | ||
} | ||
|
||
public function getCachedConfigPath() | ||
{ | ||
// | ||
} | ||
|
||
public function getCachedServicesPath() | ||
{ | ||
// | ||
} | ||
|
||
public function getCachedPackagesPath() | ||
{ | ||
// | ||
} | ||
|
||
public function getCachedRoutesPath() | ||
{ | ||
// | ||
} | ||
|
||
public function getLocale() | ||
{ | ||
// | ||
} | ||
|
||
public function getNamespace() | ||
{ | ||
// | ||
} | ||
|
||
public function getProviders($provider) | ||
{ | ||
// | ||
} | ||
|
||
public function hasBeenBootstrapped() | ||
{ | ||
// | ||
} | ||
|
||
public function loadDeferredProviders() | ||
{ | ||
// | ||
} | ||
|
||
public function loadEnvironmentFrom($file) | ||
{ | ||
// | ||
} | ||
|
||
public function routesAreCached() | ||
{ | ||
// | ||
} | ||
|
||
public function setLocale($locale) | ||
{ | ||
// | ||
} | ||
|
||
public function shouldSkipMiddleware() | ||
{ | ||
// | ||
} | ||
|
||
public function terminate() | ||
{ | ||
// | ||
} | ||
} |