Пример #1
0
 public function testLayoutcode()
 {
     $this->config['layoutcode'] = "123456";
     $targetPay = new TargetPay(null, $this->config);
     $this->assertEquals("123456", $targetPay->getLayoutcode());
     $targetPay->setLayoutcode("123");
     $this->assertNotEquals("123456", $targetPay->getLayoutcode());
 }
Пример #2
0
 /**
  * @expectedException TPWeb\TargetPay\Exception\TargetPayException
  */
 public function testSetLayoutcode()
 {
     $targetPay = new TargetPay(null, $this->config);
     $targetPay->setLayoutcode(null);
 }