Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
41 | public function cloneObject() |
||
42 | { |
||
43 | $key = new \DateTime(); |
||
44 | $value = (object)['foo' => 'bar']; |
||
45 | $pair = new ImmutableKeyValuePair($key, $value); |
||
46 | |||
47 | $clone = clone $pair; |
||
48 | |||
49 | $this->assertNotSame($key, $clone->getKey()); |
||
50 | $this->assertNotSame($value, $clone->getValue()); |
||
51 | } |
||
52 | } |
||
53 |