Skip to content

Commit 9e8a551

Browse files
author
Ashura
committed
Replace assertInstanceOf with assertSame on ApplicationTest
1 parent 16cb061 commit 9e8a551

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/ApplicationTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use DI\Bridge\Slim\Bridge;
66
use DI\Bridge\Slim\Test\Mock\RequestFactory;
77
use PHPUnit\Framework\TestCase;
8-
use DI\ContainerBuilder;
98
use Slim\App;
109
use Psr\Http\Message\ResponseInterface;
1110

@@ -37,15 +36,15 @@ public function register_app_instance_to_container()
3736

3837
$instance = null;
3938

40-
$app->get('/', function (App $app, ResponseInterface $response) use(&$instance) {
39+
$app->get('/', function (App $app, ResponseInterface $response) use (&$instance) {
4140
$instance = $app;
4241
return $response;
4342
});
4443

4544
$app->handle(RequestFactory::create());
4645

47-
$this->assertInstanceOf(
48-
App::class,
46+
$this->assertSame(
47+
$app,
4948
$instance
5049
);
5150
}

0 commit comments

Comments
 (0)