public function testFromArrayWithReplace() { $properties = array('foo' => 'bar'); $newProperties = array('foo2' => 'bar2'); $this->entity->fromArray($properties); $this->assertSame($properties, $this->entity->toArray()); $this->entity->fromArray($newProperties, true); $this->assertSame($newProperties, $this->entity->toArray()); }