setExtensions() public method

public setExtensions ( array $extensios = [] )
$extensios array
Example #1
0
 public function test_exntesion_endpoints_execution()
 {
     $extensionProphecy = $this->prophesize(Extension::class);
     $extensionProphecy->dependsOn()->willReturn([]);
     $extensionProphecy->build(Argument::type(ServiceContainer::class))->shouldBeCalled();
     $extensionProphecy->boot(Argument::type(ServiceLocator::class))->shouldBeCalled();
     $kernel = new KernelStub([$extensionProphecy->reveal()]);
     $kernel->setExtensions();
     $kernel->boot();
 }