Beispiel #1
0
 public function build()
 {
     if ($this->checkout != null) {
         $this->select = null;
     }
     return array('customer' => $this->customer->build(), 'transaction' => $this->transaction->build(), 'select' => !is_null($this->select) ? $this->select->build() : null, 'checkout' => !is_null($this->checkout) ? $this->checkout->build() : null, 'response' => $this->response->build(), 'test' => $this->test->build(), 'sdk' => $this->sdk);
 }
Beispiel #2
0
 public function testSetRevisionModeInvalid()
 {
     $test = new Test();
     try {
         $test->setRevisionMode('A');
     } catch (InvalidArgumentException $expected) {
     }
     try {
         $test->setRevisionMode('');
     } catch (InvalidArgumentException $expected) {
     }
     try {
         $test->setRevisionMode(null);
     } catch (InvalidArgumentException $expected) {
     }
 }