19declare(strict_types=1);
29use PHPUnit\Framework\Attributes\DataProvider;
30use PHPUnit\Framework\TestCase;
41 protected function setUp(): void
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],
61 #[DataProvider('servicesItRegisters')]
64 $this->assertFalse(isset($this->dic[
$service]));
68 $this->assertTrue(isset($this->dic[
$service]));
76 $this->assertInstanceOf(Services::class, $this->dic[
'http']);
77 $this->assertSame($this->dic[GlobalHttpState::class], $this->dic[
'http']);
84 $this->assertInstanceOf(Services::class, $this->dic->http());
Customizing of pimple-DIC for ILIAS.
InitHttpServices is the backport bridge that still populates the legacy container for components whic...
static servicesItRegisters()
testHttpIsReachableThroughTheContainerAccessor()
testTheContainerOnlyHoldsTheServiceAfterInit(string $service)
testTheLegacyHttpKeyResolvesToTheSameStateAsTheInterface()
Interface GlobalHttpState.
Interface ResponseSenderStrategy.