예제 #1
0
 /**
  * @depends testInstantiateClass
  * @param \core_kernel_classes_Resource $instance
  */
 public function testClone($instance)
 {
     $this->itemsService->setItemModel($instance, new core_kernel_classes_Resource(ItemModel::MODEL_URI));
     $clone = $this->itemsService->cloneInstance($instance);
     $this->assertNotSame($clone, $instance);
     $this->assertTrue($this->itemsService->deleteResource($clone));
 }