Beispiel #1
0
 public function testKlantcode()
 {
     $this->config['klantcode'] = "123456";
     $targetPay = new TargetPay(null, $this->config);
     $this->assertEquals("123456", $targetPay->getKlantcode());
     $targetPay->setKlantcode("123");
     $this->assertNotEquals("123456", $targetPay->getKlantcode());
 }
Beispiel #2
0
 /**
  * @expectedException TPWeb\TargetPay\Exception\TargetPayException
  */
 public function testSetKlantcode()
 {
     $targetPay = new TargetPay(null, $this->config);
     $targetPay->setKlantcode(null);
 }