Exemplo n.º 1
0
 /**
  * @param Builder $builder
  * @dataProvider containerBuilderProvider
  */
 public function testModuleString(Builder $builder)
 {
     $builder->addModule(Fixture\Module::class);
     $container = $builder->build();
     $this->defaultAssertions($container, Fixture\OneObjectArgument::class);
 }
Exemplo n.º 2
0
 public function testInvalidModule()
 {
     $this->setExpectedException(Exception\DomainException::class);
     $builder = new ContainerBuilder();
     $builder->addModule(\ArrayObject::class);
     $builder->build();
 }