public function testSetTags() { $p = new ae_PostModel(); $p->setTags('zwei; kleine ;Wölfe;'); $this->assertEquals($p->getTagsString(), 'zwei;kleine;Wölfe'); $this->assertEquals($p->getTags(), array('zwei', 'kleine', 'Wölfe')); $p->setTags(array('these ', ' are', 'tags !')); $this->assertEquals($p->getTagsString(), 'these;are;tags !'); $this->assertEquals($p->getTags(), array('these', 'are', 'tags !')); }