芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/rentandbuyrealty.com/pay/vendor/razorpay/razorpay/tests/RazorpayTest.php
api = new Api($_SERVER['KEY_ID'], $_SERVER['KEY_SECRET']); } public function testApiConfig() { $this->assertTrue($this->api->payment !== false); } public function testPayments() { $data = $this->api->payment->all(); // // $data Should be an associative array // $this->assertTrue(is_array($data->toArray())); $this->assertTrue(is_array($data['items'])); } public function testHeaders() { Request::addHeader('DEMO', 1); $headers = Request::getHeaders(); $this->assertEquals($headers['DEMO'], 1); } }