InitHttpServices is the backport bridge that still populates the legacy container for components which have not moved to the bootstrap yet, so what it puts into that container is what this covers.
More...
InitHttpServices is the backport bridge that still populates the legacy container for components which have not moved to the bootstrap yet, so what it puts into that container is what this covers.
Definition at line 37 of file InitHttpServicesTest.php.
◆ servicesItRegisters()
| static InitHttpServicesTest::servicesItRegisters |
( |
| ) |
|
|
static |
- Returns
- array<string, array{class-string}>
Definition at line 49 of file InitHttpServicesTest.php.
49 : array
50 {
51 return [
52 'request factory' => [RequestFactory::class],
53 'response factory' => [ResponseFactory::class],
54 'cookie jar factory' => [CookieJarFactory::class],
55 'response sender strategy' => [ResponseSenderStrategy::class],
56 'duration factory' => [DurationFactory::class],
57 'http state' => [GlobalHttpState::class],
58 ];
59 }
◆ setUp()
| InitHttpServicesTest::setUp |
( |
| ) |
|
|
protected |
◆ testHttpIsReachableThroughTheContainerAccessor()
| InitHttpServicesTest::testHttpIsReachableThroughTheContainerAccessor |
( |
| ) |
|
Definition at line 80 of file InitHttpServicesTest.php.
80 : void
81 {
83
84 $this->assertInstanceOf(Services::class, $this->dic->http());
85 }
References init().
◆ testTheContainerOnlyHoldsTheServiceAfterInit()
| InitHttpServicesTest::testTheContainerOnlyHoldsTheServiceAfterInit |
( |
string |
$service | ) |
|
◆ testTheLegacyHttpKeyResolvesToTheSameStateAsTheInterface()
| InitHttpServicesTest::testTheLegacyHttpKeyResolvesToTheSameStateAsTheInterface |
( |
| ) |
|
Definition at line 72 of file InitHttpServicesTest.php.
72 : void
73 {
75
76 $this->assertInstanceOf(Services::class, $this->dic['http']);
77 $this->assertSame($this->dic[GlobalHttpState::class], $this->dic['http']);
78 }
References init().
◆ $dic
The documentation for this class was generated from the following file: