Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function test_compare_different_objects() |
||
23 | { |
||
24 | $object1 = new \stdClass(); |
||
25 | $object1->id = 1; |
||
26 | $type1 = new Relay(); |
||
27 | $type1->setItem($object1); |
||
28 | |||
29 | $object2 = new \stdClass(); |
||
30 | $object1->id = 2; |
||
31 | $type2 = new Relay(); |
||
32 | $type2->setItem($object2); |
||
33 | |||
34 | self::assertTrue((string) $type2 == (string) $type1); |
||
35 | } |
||
37 |