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