Conditions | 4 |
Paths | 5 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
28 | public function testRulesForExistingAttributesOnly() { |
||
29 | // labels only for actually existing attributes |
||
30 | foreach ($this->model->rules() as $rule) { |
||
31 | $rules = (is_array($rule[0]) ? $rule[0] : [$rule[0]] ); |
||
32 | foreach ($rules as $attribute) { |
||
33 | $this->assertArrayHasKey($attribute, array_merge(get_object_vars($this->model), $this->model->attributes)); |
||
34 | } |
||
53 | } |