public function testCreateWithDefaultValues() { $descriptor = new BindingTypeDescriptor('vendor/type'); $this->assertSame('vendor/type', $descriptor->getName()); $this->assertNull($descriptor->getDescription()); $this->assertSame(array(), $descriptor->getParameters()); }
private function typesEqual(BindingTypeDescriptor $type1, BindingTypeDescriptor $type2) { if ($type1->getName() !== $type2->getName()) { return false; } if ($type1->getDescription() !== $type2->getDescription()) { return false; } if ($type1->getParameters() != $type2->getParameters()) { return false; } return true; }