isValid() публичный Метод

returns if the receipt is valid or not
public isValid ( ) : boolean
Результат boolean
 public function testValidReceipt()
 {
     $response = new Response(array('status' => 0, 'receipt' => array()));
     $this->assertTrue($response->isValid(), 'receipt must be valid');
     $this->assertEquals(0, $response->getResultCode(), 'receipt result code must match');
 }
 public function testValidReceipt()
 {
     $response = new Response(array('status' => 0, 'receipt' => []));
     $this->assertTrue($response->isValid(), 'receipt must be valid');
 }