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(); }
/** * @dataProvider serializedTestObjects **/ public function testSerializedObjectComparator($one, $two, $result) { $this->assertEquals($result, SerializedObjectComparator::me()->compare($one, $two)); }