| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function testCompare() |
||
| 12 | { |
||
| 13 | $u1 = new UserContact('Xing', 'm', 'firstname', 'lasTname'); |
||
| 14 | $u2 = new UserContact('Xing', 'm', 'firstname2', 'lastname2'); |
||
| 15 | $u3 = new UserContact('Xing', 'm', 'firstname3', 'Lastname3'); |
||
| 16 | |||
| 17 | $sorter = new AzineContactSorter(); |
||
| 18 | $this->assertSame(0, $sorter->compare($u1, $u1)); |
||
| 19 | $this->assertSame(-1, $sorter->compare($u1, $u2)); |
||
| 20 | $this->assertSame(1, $sorter->compare($u3, $u2)); |
||
| 21 | } |
||
| 22 | } |
||
| 23 |