public function testFilterPersistedAttributes() { $car = new Car(); $car->fuel = 'diesel'; $car->junk = 'trunk'; $car->wingspan = 30; $car->filterPersistedAttributes(); $this->assertEquals(['fuel' => 'diesel'], $car->getAttributes()); }