Skip to content

Commit 62d3aa2

Browse files
authored
Merge pull request #45 from bedita/refactor/deprecation-cake5.3
refactor: rename Plugin class to DevToolsPlugin
2 parents cff33d6 + c455aa8 commit 62d3aa2

3 files changed

Lines changed: 13 additions & 14 deletions

File tree

phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
>
1111
<php>
1212
<ini name="memory_limit" value="-1"/>
13-
<ini name="apc.enable_cli" value="1"/>
1413
</php>
1514

1615
<testsuites>

src/Plugin.php renamed to src/DevToolsPlugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
use Cake\Routing\Middleware\AssetMiddleware;
2525

2626
/**
27-
* Plugin class.
27+
* DevTools plugin class.
2828
*/
29-
class Plugin extends BasePlugin
29+
class DevToolsPlugin extends BasePlugin
3030
{
3131
/**
3232
* @inheritDoc
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515

1616
namespace BEdita\DevTools\Test\TestCase;
1717

18+
use BEdita\DevTools\DevToolsPlugin;
1819
use BEdita\DevTools\Middleware\HtmlMiddleware;
19-
use BEdita\DevTools\Plugin;
2020
use Cake\Core\Configure;
2121
use Cake\Error\Middleware\ErrorHandlerMiddleware;
2222
use Cake\Http\BaseApplication;
@@ -29,17 +29,17 @@
2929
use PHPUnit\Framework\TestCase;
3030

3131
/**
32-
* Test {@see \BEdita\DevTools\Plugin}.
32+
* Test {@see \BEdita\DevTools\DevToolsPlugin}.
3333
*/
34-
#[CoversClass(Plugin::class)]
35-
#[CoversMethod(Plugin::class, 'bootstrap')]
36-
#[CoversMethod(Plugin::class, 'middleware')]
37-
class PluginTest extends TestCase
34+
#[CoversClass(DevToolsPlugin::class)]
35+
#[CoversMethod(DevToolsPlugin::class, 'bootstrap')]
36+
#[CoversMethod(DevToolsPlugin::class, 'middleware')]
37+
class DevToolsPluginTest extends TestCase
3838
{
3939
/**
4040
* Test subject.
4141
*
42-
* @var \BEdita\DevTools\Plugin
42+
* @var \BEdita\DevTools\DevToolsPlugin
4343
*/
4444
protected $plugin;
4545

@@ -50,11 +50,11 @@ protected function setUp(): void
5050
{
5151
parent::setUp();
5252

53-
$this->plugin = new Plugin();
53+
$this->plugin = new DevToolsPlugin();
5454
}
5555

5656
/**
57-
* Test {@see Plugin::bootstrap()} method.
57+
* Test {@see DevToolsPlugin::bootstrap()} method.
5858
*
5959
* @return void
6060
*/
@@ -80,7 +80,7 @@ public function middleware($middleware): MiddlewareQueue
8080
}
8181

8282
/**
83-
* Data provider for {@see PluginTest::testMiddleware()} test case.
83+
* Data provider for {@see DevToolsPluginTest::testMiddleware()} test case.
8484
*
8585
* @return array[]
8686
*/
@@ -103,7 +103,7 @@ public static function middlewareProvider(): array
103103
}
104104

105105
/**
106-
* Test {@see Plugin::middleware()} method.
106+
* Test {@see DevToolsPlugin::middleware()} method.
107107
*
108108
* @param class-string[] $expected Expected middleware queue.
109109
* @param bool|null $acceptHtml Value of `Accept.html` configuration.

0 commit comments

Comments
 (0)