public function testFrequencyValidation()
{
$this->setExpectedException('InvalidArgumentException');
$fileName = __DIR__ . '/sitemap.xml';
$sitemap = new Sitemap($fileName);
$sitemap->addItem('http://example.com/mylink1');
$sitemap->addItem('http://example.com/mylink2', time(), 'invalid');
unlink($fileName);
}