Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit 03ae3f5

Browse files
committed
remove resetProvider test
1 parent ede216b commit 03ae3f5

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

tests/Server/ApplicationTest.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -57,27 +57,6 @@ public function testTerminate()
5757
$this->assertTrue($flag);
5858
}
5959

60-
public function testResetProvider()
61-
{
62-
$application = $this->makeApplication();
63-
$response = $application->run(Request::create('/'));
64-
65-
$app = $application->getApplication();
66-
67-
$this->assertSame('bar', $app['singleton.test']->foo);
68-
69-
$app->singleton('singleton.test', function () {
70-
$obj = new \stdClass;
71-
$obj->foo = 'foo';
72-
73-
return $obj;
74-
});
75-
$this->assertSame('foo', $app['singleton.test']->foo);
76-
77-
$response = $application->resetProviders();
78-
$this->assertSame('bar', $app['singleton.test']->foo);
79-
}
80-
8160
protected function makeApplication($forceFramework = null)
8261
{
8362
if (! is_null($forceFramework)) {

0 commit comments

Comments
 (0)