示例#1
0
 public function testSetTitle()
 {
     $blog = new Blog();
     $blog->setTitle('Hello World');
     $this->assertEquals('hello-world', $blog->getSlug());
     $this->assertEquals('Hello World', $blog->getTitle());
 }