transform() public method

public transform ( $value )
 public function testTransform()
 {
     $pool = $this->getMockBuilder('Sonata\\Component\\Delivery\\Pool')->disableOriginalConstructor()->getMock();
     $transformer = new DeliveryMethodTransformer($pool);
     $delivery = new FreeDelivery(false);
     $delivery->setCode("deliveryCode");
     $this->assertEquals("deliveryCode", $transformer->transform($delivery));
     $this->assertNull($transformer->transform(null));
 }