예제 #1
0
 /**
  * Testing the getFriendlyClassName() method.
  *
  * @since 1.2.1
  */
 public function testGetFriendlyClassName()
 {
     $person = new Person();
     $article = new Article();
     $comment = new ArticleComment();
     $this->assertEquals('Person', $person->getFriendlyClassName(), 'testing the getFriendlyClassName() method');
     $this->assertEquals('Article', $article->getFriendlyClassName(), 'testing the getFriendlyClassName() method');
     $this->assertEquals('ArticleComment', $comment->getFriendlyClassName(), 'testing the getFriendlyClassName() method');
 }