/** * @depends testAddPropertyAddsProperty */ public function testRemovePropertyRemovedPropertyWithGivenId() { $properties = new Properties(); $stringProperty = new PropertyString('stringProp', 'stringPropValue'); $properties->addProperty($stringProperty); $stringProperty2 = new PropertyString('stringProp2', 'stringPropValue2'); $properties->addProperty($stringProperty2); $properties->removeProperty('stringProp'); $this->assertAttributeSame(array($stringProperty2->getId() => $stringProperty2), 'properties', $properties); }