public function test_populate() { $this->generic->populate(['one' => 2, 'three' => 3]); $this->assertEquals(2, $this->generic->one, "populate should override existing properties"); $this->assertEquals(2, $this->generic->two, "populate should not erase old properties"); $this->assertEquals(3, $this->generic->three, "populate should add new properties"); $this->generic = new Generic($this->genericData); }