public function testFilledFeed()
 {
     $time = time();
     $messages = array($this->createMessage('message1', 'Eerste bericht', 1, $time), $this->createMessage('message2', 'Tweede bericht', 2, $time), $this->createMessage('message3', 'Derde bericht', 3, $time));
     $this->server->expects($this->any())->method('search')->will($this->returnValue($messages));
     $this->obj->createFeed('/tmp', 'feed.xml', 'http://www.example.com', 3);
     $files = array('feed.xml', '1.html', '2.html', '3.html');
     foreach ($files as $file) {
         $this->assertFileEquals(__DIR__ . '/' . $file, '/tmp/' . $file);
         @unlink('/tmp/' . $file);
     }
 }