public function testAccessors() { $favouritePlace = new FavouritePlace(); $favouritePlace->setId('12345'); $favouritePlace->setLabel('Home'); $favouritePlace->setGeolocation(new Geolocation(52.9549135, -1.1582327)); $favouritePlace->setStops(['3390Y4', '3390Y3']); $this->assertEquals('12345', $favouritePlace->getId()); $this->assertEquals('Home', $favouritePlace->getLabel()); $this->assertInstanceOf('Base\\Geospatial\\Geolocation', $favouritePlace->getGeolocation()); $this->assertEquals(['3390Y4', '3390Y3'], $favouritePlace->getStops()); }