| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function testResultDataUpdate() |
||
| 18 | { |
||
| 19 | $a = new ResultData(ResultData::EXITCODE_OK, '', ['one' => 'first', 'two' => 'second']); |
||
| 20 | $b = new ResultData(ResultData::EXITCODE_OK, '', ['one' => 'First', 'three' => 'Third']); |
||
| 21 | |||
| 22 | $expected = ['one' => 'first', 'two' => 'second']; |
||
| 23 | $this->guy->assertEquals($expected, $a->getData()); |
||
| 24 | |||
| 25 | $a->update($b); |
||
| 26 | |||
| 27 | $expected = ['one' => 'First', 'two' => 'second', 'three' => 'Third']; |
||
| 28 | $this->guy->assertEquals($expected, $a->getData()); |
||
| 29 | } |
||
| 30 | |||
| 48 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.