示例#1
0
 /**
  * (non-PHPdoc)
  * @see PHPUnit_Framework_TestCase::setUp()
  */
 public function setUp()
 {
     parent::setUp();
     $expAddress = new Address();
     $expAddress->setLine2('Address Line 2');
     $expAddress->setPostalCode('34000');
     $expAddress->setCity('City');
     $destAddress = new AddressDest();
     $destAddress->setName('Name');
     $destAddress->setSurname('Surname');
     $destAddress->setEmail('*****@*****.**');
     $destAddress->setLine2('Address Line 2');
     $destAddress->setPostalCode('34000');
     $destAddress->setCity('City');
     $this->context = new ServiceCallContext('ACME');
     $this->parcel = new Parcel(0.72);
     $this->expEnv = new ExpEnv($expAddress);
     $this->destEnv = new DestEnv($destAddress);
     $this->letter = new Letter();
     $this->letter->setContractNumber('111111');
     $this->letter->setPassword('password');
     $this->letter->setService($this->context);
     $this->letter->setParcel($this->parcel);
     $this->letter->setExp($this->expEnv);
     $this->letter->setDest($this->destEnv);
     $this->letter->setProfil(null);
 }