for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
require __DIR__ . '/../vendor/autoload.php';
require_once __DIR__ . '/../src/ScbQr.php';
/**
* @property vansales\ScbQr ScbQr
*/
class ScbQrTest extends PHPUnit_Framework_TestCase {
private $ScbQr;
public function __construct() {
$this->ScbQr = new vansales\ScbQr();
}
public function testformatAmount() {
$amount = 90.2511;
$result = $this->PromptPay->formatAmount($amount);
PromptPay
ScbQrTest
$expected = '90.25';
$this->assertEquals($expected, $result);
$amount = 90.2561;
$expected = '90.26';