Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class HasAttributesTraitTest extends AbstractTest |
||
14 | { |
||
15 | public function test_getAttributes_empty_array() |
||
16 | { |
||
17 | $object = new BaseDto(); |
||
18 | self::assertIsArray($object->getAttributes()); |
||
19 | } |
||
20 | |||
21 | public function test_setAttribute() |
||
22 | { |
||
23 | $object = new BaseDto(); |
||
24 | self::assertFalse($object->hasAttribute('test')); |
||
25 | |||
26 | $object->setAttribute('test', 'value'); |
||
27 | self::assertTrue($object->hasAttribute('test')); |
||
28 | self::assertSame('value', $object->getAttribute('test')); |
||
29 | } |
||
30 | |||
31 | public function test_setAttribute_with_internal_property() |
||
40 | } |
||
41 | } |
||
42 |