tests/Unit/QueryStatusTest.php
/**
     * Test Mpesa B2C Transaction status.
     *
     * @covers \Elimuswift\Mpesa\C2B\QueryStatus::check
     * @test
     */
Test Mpesa B2C Transaction status.
Test Mpesa B2C Transaction status .
public function testTransactionStatus()
    {
        $status = $this->gateway->transactionStatus();
        $response = $status->check('ws_CO_27072017151044001');
        $this->assertEquals($response->CheckoutRequestID, 'ws_CO_27072017151044001');
    }
public function testTransactionStatus ( ) { $ status = $ this -> gateway -> transactionStatus ( ) ; $ response = $ status -> check ( 'ws_CO_27072017151044001' ) ; $ this -> assertEquals ( $ response -> CheckoutRequestID , 'ws_CO_27072017151044001' ) ; }
Test Mpesa B2C Transaction status.
Test Mpesa B2C Transaction status .