register(); foreach ( [ 'psr7.factory.request', 'psr7.factory.response', 'psr7.factory.upload', 'psr7.factory.stream', 'psr7.factory', 'psr7.request', 'psr7.response', ServerRequestFactoryInterface::class, ResponseFactoryInterface::class, UploadedFileFactoryInterface::class, StreamFactoryInterface::class, HttpMessageFactoryInterface::class, ServerRequestInterface::class, ResponseInterface::class, ] as $id ) { $this->assertTrue( $app->has($id), sprintf('"%s" is not registered', $id) ); } } }