public function testBuildRequest()
 {
     $fedex = new FedEx('TrackService_v10.wsdl', '', '', '', '');
     $req = $fedex->buildRequest();
     $this->assertNotEmpty($req);
     $this->assertNotEmpty($req['WebAuthenticationDetail']);
     $this->assertNotEmpty($req['ClientDetail']);
     $this->assertNotEmpty($req['TransactionDetail']);
     $this->assertNotEmpty($req['Version']);
 }
 /**
  *  Constructor requires the key, password,
  *  account number and password for the FedEx
  *  account to use the API. You may also override
  *  the default WSDL file.
  *
  *  @param string   // FedEx Key
  *  @param string   // FedEx account password
  *  @param string   // Account number
  *  @param string   // Meter number
  */
 public function __construct($key, $passwd, $acct, $meter, $wsdlFile = 'TrackService_v10.wsdl')
 {
     parent::__construct($wsdlFile, $key, $passwd, $acct, $meter);
     // TODO: Set this in env()?
     $this->endPoint = 'https://wsbeta.fedex.com:443/web-services';
     $this->setCustomerTransactionId('Track Request via PHP');
     $this->setVersion('trck', 9, 1, 0);
 }