attributeLabels() public method

public attributeLabels ( ) : array
return array customized attribute labels (name=>label)
Example #1
0
 /**
  * @covers Allergy::attributeLabels
  */
 public function testAttributeLabels()
 {
     $expected = array();
     $this->assertEquals($expected, $this->model->attributeLabels());
 }
Example #2
0
 /**
  * @covers Audit::attributeLabels
  */
 public function testAttributeLabels()
 {
     $expected = array('id' => 'ID', 'action' => 'Action', 'target_type' => 'Target type', 'patient_id' => 'Patient', 'episode_id' => 'Episode', 'event_id' => 'Event', 'user_id' => 'User', 'data' => 'Data', 'remote_addr' => 'Remote address', 'http_user_agent' => 'HTTP User Agent', 'server_name' => 'Server name', 'request_uri' => 'Request URI', 'site_id' => 'Site', 'firm_id' => 'Firm');
     $this->assertEquals($expected, $this->model->attributeLabels());
 }