コード例 #1
0
 public function __construct(Identifiable $parent, GenericDAO $dao, $lazy = true)
 {
     Assert::isBoolean($lazy);
     $this->parent = $parent;
     $this->lazy = $lazy;
     $this->dao = $dao;
     Assert::isInstance($dao->getObjectName(), 'Identifiable');
     $this->comparator = SerializedObjectComparator::me();
 }
コード例 #2
0
 /**
  * @dataProvider serializedTestObjects
  **/
 public function testSerializedObjectComparator($one, $two, $result)
 {
     $this->assertEquals($result, SerializedObjectComparator::me()->compare($one, $two));
 }