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