value)->toBe($value); expect($requestSignature->bodyHash)->toBe($bodyHash); }); }); describe('RequestSignature validation rules', function () { it('throws an exception if the signature value is empty', function () { // GIVEN $value = ''; $bodyHash = 'some-body-hash'; // THEN $this->expectException(\InvalidArgumentException::class); // WHEN new RequestSignature($value, $bodyHash); }); it('throws an exception if the body hash is empty', function () { // GIVEN $value = 'some-signature-value'; $bodyHash = ''; // THEN $this->expectException(\InvalidArgumentException::class); // WHEN new RequestSignature($value, $bodyHash); }); });