/** * @test */ public function setLocation() { $value = array(4 => 4, 5 => 5, 6 => NULL); $valueCleaned = array(4 => 4, 5 => 5); $this->subject->setLocations($value); $this->assertEquals($valueCleaned, $this->subject->getLocations()); }