public function testDuplicateIfMarkedDuplicate()
 {
     $type = new BindingTypeDescriptor('vendor/type');
     $type->load($this->package);
     $type->markDuplicate(true);
     $this->assertSame(BindingTypeState::DUPLICATE, $type->getState());
 }
 public function testParametersNotValidatedIfTypeNotEnabled()
 {
     $type = new BindingTypeDescriptor('vendor/type', null, array(new BindingParameterDescriptor('param', BindingParameterDescriptor::REQUIRED)));
     $type->load($this->package);
     $type->markDuplicate(true);
     // Parameter is missing
     $binding = new BindingDescriptor('/path', 'vendor/type');
     $binding->load($this->package, $type);
     $this->assertSame(BindingState::TYPE_NOT_ENABLED, $binding->getState());
     $this->assertCount(0, $binding->getViolations());
 }