public function test_capture_surchargeAmount_optional() { $hash_in = array('litleTxnId' => '3', 'id' => 'id', 'amount' => '2', 'payPalNotes' => 'notes'); $hash_out = Transactions::createCaptureHash($hash_in); $this->assertEquals($hash_in, array_intersect($hash_in, $hash_out)); }