/** * @test */ public function moveInRandomDirectionAndDistanceCalledTwiceCreatesDifferentCoordinates() { $maximumDistance = 100.0; $this->subject->moveInRandomDirectionAndDistance($this->geoObject, $maximumDistance); $firstCoordinates = $this->geoObject->getGeoCoordinates(); $this->subject->moveInRandomDirectionAndDistance($this->geoObject, $maximumDistance); self::assertNotSame($firstCoordinates, $this->geoObject->getGeoCoordinates()); }