Total Complexity | 9 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 4 | ||
Bugs | 1 | Features | 2 |
1 | <?php |
||
12 | trait ModelTestTrait |
||
13 | { |
||
14 | use InvokeProtectedTrait; |
||
15 | |||
16 | public function testAttributeLabelsForExistingAttributesOnly() { |
||
17 | // labels only for actually existing attributes |
||
18 | foreach ($this->model->attributeLabels() as $key => $label) { |
||
19 | $this->assertArrayHasKey($key, array_merge(get_object_vars($this->model), $this->model->attributes)); |
||
|
|||
20 | } |
||
21 | } |
||
22 | public function testAttributeHintsForExistingAttributesOnly() { |
||
26 | } |
||
27 | } |
||
28 | public function testRulesForExistingAttributesOnly() { |
||
34 | } |
||
35 | } |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @return array |
||
40 | */ |
||
41 | public function baseUserStringsAttributes() { |
||
53 | } |