setShippingName() public method

Sets the card shipping name.
public setShippingName ( string $value ) : CreditCard
$value string
return CreditCard provides a fluent interface.
Exemplo n.º 1
0
 public function testShippingName()
 {
     $this->card->setShippingFirstName('Bob');
     $this->card->setShippingLastName('Smith');
     $this->assertEquals('Bob Smith', $this->card->getShippingName());
     $this->card->setShippingName('John Foo');
     $this->assertEquals('John', $this->card->getShippingFirstName());
     $this->assertEquals('Foo', $this->card->getShippingLastName());
 }