Example #1
0
 public function testIsEqualDifferent()
 {
     $auth1 = new Author('issei');
     $auth2 = new Author('murasaki');
     $auth1->setAvatar('dsfdsdsf');
     $auth2->setAvatar('dsfdsdsf');
     $this->assertFalse($auth1->isEqual($auth2));
 }
Example #2
0
 protected function createAuthor($name)
 {
     $author = new Author($name);
     $author->setAvatar('00.jpg');
     return $author;
 }