cloneObject() public method

Note: this is not used by anything in the Flow base distribution, but might be needed by custom backends (like Neos.CouchDB).
public cloneObject ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : void
$joinPoint Neos\Flow\Aop\JoinPointInterface
return void
 /**
  * @test
  * @return void
  */
 public function cloneObjectMarksTheObjectAsCloned()
 {
     $object = new \stdClass();
     $this->mockJoinPoint->expects($this->any())->method('getProxy')->will($this->returnValue($object));
     $this->persistenceMagicAspect->cloneObject($this->mockJoinPoint);
     $this->assertTrue($object->Flow_Persistence_clone);
 }