예제 #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);
 }
예제 #2
0
파일: BuilderTest.php 프로젝트: jbboehr/zdi
 public function testInvalidModule()
 {
     $this->setExpectedException(Exception\DomainException::class);
     $builder = new ContainerBuilder();
     $builder->addModule(\ArrayObject::class);
     $builder->build();
 }