public attributeLabels ( ) : array | ||
return | array | customized attribute labels (name=>label) |
public function attributeLabels()
{
return array('id' => 'ID', 'name' => 'Name');
}
/** * @covers CommonPreviousOperation::attributeLabels */ public function testAttributeLabels() { $expected = array('id' => 'ID', 'name' => 'Name'); $this->assertEquals($expected, $this->model->attributeLabels()); }