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