public function testEqualObjectSameInstance() { $o1 = new \stdClass(); $o1->x = "y"; $o2 = $o1; $ts1 = new Timestamped(123, $o1); $ts2 = new Timestamped(123, $o2); $this->assertTrue($ts1->equals($ts2)); }