Esempio n. 1
0
 public function testTags()
 {
     $comment = new \vc\Data\Comment();
     $this->assertSame(array(), $comment->getTags());
     $tag1 = new \vc\Data\Tag("note", "details");
     $this->assertSame($comment, $comment->addTag($tag1));
     $this->assertSame(array($tag1), $comment->getTags());
     $tag2 = new \vc\Data\Tag("note", "details");
     $this->assertSame($comment, $comment->addTag($tag2));
     $this->assertSame(array($tag1, $tag2), $comment->getTags());
 }