コード例 #1
0
ファイル: Object.php プロジェクト: reoring/sabel
 public function testEquals()
 {
     $obj1 = new TestObject();
     $obj2 = new TestObject();
     $this->assertTrue($obj1->equals($obj2));
     $obj1->attr = 20;
     $this->assertFalse($obj1->equals($obj2));
 }