| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function testSetValue() |
||
| 27 | { |
||
| 28 | $writer = new ReflectionWriter(); |
||
| 29 | $team = new Team(); |
||
| 30 | $writer->setValue($team, 'name', 'New Name'); |
||
| 31 | static::assertEquals('New Name', $team->getName()); |
||
| 32 | |||
| 33 | $writer->setValue($team, 'id', 1); |
||
| 34 | static::assertEquals(1, $team->getId()); |
||
| 35 | } |
||
| 36 | } |
||
| 37 |