public function isDirtyReturnsTrueForNestedArrayWhoseCountDiffers()
{
$className = 'Class' . md5(uniqid(mt_rand(), true));
eval('class ' . $className . ' { public $foo; }');
$object = new $className();
$object->foo = ['foo', ['bar', 'baz']];
$cleanData = ['identifier' => 'fakeUuid', 'properties' => ['foo' => ['type' => 'string', 'multivalue' => true, 'value' => [['type' => 'string', 'index' => 0, 'value' => 'foo'], ['type' => 'array', 'index' => 1, 'value' => ['type' => 'string', 'index' => 0, 'value' => 'bar']]]]]];
$session = $this->getMockBuilder(Persistence\Generic\Session::class)->setMethods(['getIdentifierByObject'])->getMock();
$session->registerReconstitutedEntity($object, $cleanData);
$session->expects($this->once())->method('getIdentifierByObject')->will($this->returnValue('fakeUuid'));
$this->assertTrue($session->isDirty($object, 'foo'));
}