예제 #1
0
 function it_has_a_slug_provided_in_title_info(PostInfo $postInfo, Slug $slug)
 {
     $postInfo->getSlug()->willReturn($slug);
     $this->getSlug()->shouldBe($slug);
 }
예제 #2
0
파일: Post.php 프로젝트: Rybbow/x-blog
 /**
  * @return ValueObject\Slug
  */
 public function getSlug()
 {
     return $this->info->getSlug();
 }