Ejemplo n.º 1
0
 public function testEstadoRecogidaSerializer()
 {
     $data = array('reco_codigo' => null, 'Del_Sol' => '0001', 'Num_Rec' => '12345678', 'ref' => null);
     $serializer = new NacexSerializer($this->credentials, $data);
     $nacexData = array('String_1' => $this->credentials[0], 'String_2' => $this->credentials[1], 'String_3' => '', 'String_4' => $data['Del_Sol'], 'String_5' => $data['Num_Rec'], 'String_6' => '');
     $this->assertEquals($serializer->serialize(), $nacexData);
 }
Ejemplo n.º 2
0
 public function __call($method, $arguments)
 {
     if (count($arguments) > 0) {
         $serializer = new NacexSerializer($this->credentials, $arguments[0]);
         $response = $this->nacexClient->execute($method, $serializer->serialize());
         return $response;
     }
     return $this->nacexClient->execute($method);
 }