public function testToFromArray() { $mockIds = ["mock ids"]; $mockType = "mock type"; $this->sut->setIds($mockIds); $this->sut->setType($mockType); $array = $this->sut->toArray(); $test = new FacebookAudienceTargeting($array); $this->assertEquals($this->sut, $test); }