We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed5b52f commit 3a41199Copy full SHA for 3a41199
test/AppTest.php
@@ -105,6 +105,14 @@ public function testUseWithDifferentTypesOfMiddleware($middleware): void
105
}
106
107
108
+ public function testCanAppendMiddleware(): void
109
+ {
110
+ $this->app->use([HelloWorldMiddleware::class]);
111
+ $this->app->use(['BitFrame\Test\Asset\helloWorldCallable']);
112
+
113
+ $this->assertSame(count($this->app->getMiddlewares()), 2);
114
+ }
115
116
public function testCanGetContainerViaHandlerInCallback(): void
117
{
118
$app = $this->app;
0 commit comments