Skip to content

Commit

Permalink
laravel 8
Browse files Browse the repository at this point in the history
  • Loading branch information
recca0120 committed Sep 3, 2020
1 parent 9792a6f commit f20448c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
20 changes: 10 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@
],
"require": {
"php": ">=5.5.9",
"illuminate/contracts": "^5.1|^6.0|^7.0",
"illuminate/database": "^5.1|^6.0|^7.0",
"illuminate/routing": "^5.1|^6.0|^7.0",
"illuminate/session": "^5.1|^6.0|^7.0",
"illuminate/support": "^5.1|^6.0|^7.0",
"illuminate/view": "^5.1|^6.0|^7.0",
"recca0120/terminal": "^1.0",
"tracy/tracy": "^2.4|^2.5|^2.6|^2.7"
"illuminate/contracts": "^5.1|^6.0|^7.0|^8.0",
"illuminate/database": "^5.1|^6.0|^7.0|^8.0",
"illuminate/routing": "^5.1|^6.0|^7.0|^8.0",
"illuminate/session": "^5.1|^6.0|^7.0|^8.0",
"illuminate/support": "^5.1|^6.0|^7.0|^8.0",
"illuminate/view": "^5.1|^6.0|^7.0|^8.0",
"recca0120/terminal": "^1.9",
"tracy/tracy": "^2.4|^2.5|^2.6|^2.7|^3.0"
},
"require-dev": {
"mockery/mockery": "^0.9.4|^1.0",
"nesbot/carbon": "^1.20|^2.0",
"phpunit/phpunit": "^4.8|^5.4|^6.1|^7.0|^8.0",
"vlucas/phpdotenv": "^4.1"
"phpunit/phpunit": "^4.8|^5.4|^6.1|^7.0|^8.0|^9.0",
"vlucas/phpdotenv": "^4.1|^5.0"
},
"autoload": {
"files": [
Expand Down
13 changes: 5 additions & 8 deletions tests/LaravelTracyServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,14 @@ public function testRegister()
$serviceProvider = new LaravelTracyServiceProvider(
$app = m::mock('Illuminate\Contracts\Foundation\Application, ArrayAccess')
);
$app->shouldReceive('offsetGet')->twice()->with('config')->andReturn(
$config = m::mock('Illuminate\Contracts\Config\Repository, ArrayAccess')
);
$config = m::mock('Illuminate\Contracts\Config\Repository, ArrayAccess');
$app->shouldReceive('make')->with('config')->andReturn($config);
// $app->shouldReceive('offsetGet')->with('config')->andReturn($config);
$config->shouldReceive('get')->once()->with('tracy', [])->andReturn([]);
$config->shouldReceive('set')->once()->with('tracy', m::type('array'));

$app->shouldReceive('offsetGet')->once()->with('config')->andReturn($config = [
'tracy' => [
'panels' => [
'terminal' => true,
],
],
'tracy' => ['panels' => ['terminal' => true]],
]);

$app->shouldReceive('register')->once()->with('Recca0120\Terminal\TerminalServiceProvider');
Expand All @@ -55,6 +51,7 @@ public function testRegister()

return $bar instanceof \Tracy\Bar;
}));

$app->shouldReceive('singleton')->once()->with('Recca0120\LaravelTracy\DebuggerManager', m::on(function ($closure) use ($app) {
$app->shouldReceive('offsetGet')->once()->with('url')->andReturn(
$urlGenerator = m::mock('Illuminate\Contracts\Routing\UrlGenerator')
Expand Down

0 comments on commit f20448c

Please sign in to comment.