Lines Matching refs:post
709 …$post = new BlogPost('This is a nice title.', $author = new Author('Foo Bar'), new \DateTime('2011…
710 $post->addComment($comment = new Comment($author, 'foo'));
712 $post->addTag($tag1 = new Tag('tag1'));
713 $post->addTag($tag2 = new Tag('tag2'));
715 self::assertEquals($this->getContent('blog_post'), $this->serialize($post));
718 $deserialized = $this->deserialize($this->getContent('blog_post'), get_class($post));
739 …$post = new BlogPost('This is a nice title.', $author = new Author('Foo Bar'), new \DateTime('2011…
741 $this->setField($post, 'author', null);
742 $this->setField($post, 'publisher', null);
744 …self::assertEquals($this->getContent('blog_post_unauthored'), $this->serialize($post, Serializatio…
747 … $this->deserialize($this->getContent('blog_post_unauthored'), get_class($post), DeserializationCo…
1075 $post = new IndexedCommentsBlogPost();
1077 self::assertEquals($this->getContent('custom_accessor'), $this->serialize($post));