public function addingEqualPropertiesIsIdempotent() { $c = new CompositeProperties([(new Properties())->load("[section]\na=b\nb=c")]); $this->assertEquals(1, $c->length()); $c->add((new Properties())->load("[section]\na=b\nb=c")); $this->assertEquals(1, $c->length()); }
public function addingEqualPropertiesIsIdempotent() { $c = new CompositeProperties(array(Properties::fromString('[section] a=b b=c'))); $this->assertEquals(1, $c->length()); $c->add(Properties::fromString('[section] a=b b=c')); $this->assertEquals(1, $c->length()); }