예제 #1
0
 public function testIsEmpty()
 {
     $list = new AliasGroupList();
     $this->assertTrue($list->isEmpty());
     $list = new AliasGroupList(array(new AliasGroup('en', array('foo'))));
     $this->assertFalse($list->isEmpty());
 }
예제 #2
0
 /**
  * @since 0.7.4
  *
  * @return bool
  */
 public function isEmpty()
 {
     return $this->labels->isEmpty() && $this->descriptions->isEmpty() && $this->aliasGroups->isEmpty();
 }