[ 'dependencies.config.php' => 'url()); $this->assertInstanceOf(Container::class, $container); } public function testCreateReturnsObject(): void { $root = vfsStream::setup('friendica', null, [ 'static' => [ 'dependencies.config.php' => <<< PHP [ 'instanceOf' => \Psr\Log\NullLogger::class, ], ]; PHP, ], ]); $container = DiceContainer::fromBasePath($root->url()); $this->assertInstanceOf(NullLogger::class, $container->create(LoggerInterface::class)); } }