コード例 #1
0
ファイル: PermanentTest.php プロジェクト: webchemistry/thepay
 public function testPermanent()
 {
     $permanent = $this->thePay->createPermanent('data', 'desc', 'localhost');
     $this->assertTrue($permanent->isOk());
     $this->assertNull($permanent->getErrorMessage());
     $this->assertTrue(is_array($permanent->getMethods()));
     foreach ($permanent->getMethods() as $method) {
         $this->assertInstanceOf(\TpPermanentPaymentResponseMethod::class, $method);
     }
 }
コード例 #2
0
ファイル: ThePayTest.php プロジェクト: webchemistry/thepay
 public function testIsTest()
 {
     $this->assertTrue($this->thePay->isTest());
 }
コード例 #3
0
ファイル: SenderTest.php プロジェクト: webchemistry/thepay
 public function testRender()
 {
     $this->assertNotEmpty($this->thePay->createSender(400)->render());
 }