public function testAnthroponymCreating()
 {
     $type = 'simpleName';
     $value = 'Vasya';
     $anthroponym = new Anthroponym($type, $value);
     $this->assertEquals($value, $anthroponym->getValue());
 }
 /**
  *
  * (non-PHPdoc)
  * @see \Phamily\Framework\Repository\AnthroponymRepositoryInterface::getByType()
  *
  */
 public function getByType($type)
 {
     $tableGateway = $this->createTableGateway('anthroponym');
     $resultSet = $tableGateway->select(['type' => $type]);
     // if($resultSet->count() > 0){
     $array = [];
     foreach ($resultSet as $row) {
         $anthroponym = new Anthroponym($row['type'], $row['value']);
         $array[] = $anthroponym->populate($row);
     }
     // }
     return $array;
 }