public function testEquals() { $obj1 = new TestObject(); $obj2 = new TestObject(); $this->assertTrue($obj1->equals($obj2)); $obj1->attr = 20; $this->assertFalse($obj1->equals($obj2)); }