/** * */ public function testValidateWrongLocation() { $this->siteMapEntity->addLocation(new LocationEntity()); $this->setExpectedException('Evheniy\\SitemapXmlBundle\\Exception\\ValidateEntityException', '"Location" field must be not empty!'); $this->siteMapEntity->validate(); }