• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mlocati / PayWay / 5272005549

pending completion
5272005549

Pull #4

github

web-flow
Merge d20a1048f into ada68d889
Pull Request #4: Multiple fixes

51 of 51 new or added lines in 8 files covered. (100.0%)

1603 of 2134 relevant lines covered (75.12%)

1.54 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Exception/InvalidSignature.php
1
<?php
2

3
namespace MLocati\PayWay\Exception;
4

5
use MLocati\PayWay\Exception;
6

7
class InvalidSignature extends Exception
8
{
9
    /**
10
     * @var string
11
     */
12
    private $expectedSignature;
13

14
    /**
15
     * @var string
16
     */
17
    private $actualSignature;
18

19
    /**
20
     * @param string $expectedSignature
21
     * @param string $actualSignature
22
     */
23
    public function __construct($expectedSignature, $actualSignature)
24
    {
25
        $this->expectedSignature = (string) $expectedSignature;
×
26
        $this->actualSignature = (string) $actualSignature;
×
27
        parent::__construct("The signature of the response is not valid (expected: '{$this->expectedSignature}', actual: '{$this->actualSignature}')");
×
28
    }
29

30
    /**
31
     * @return string
32
     */
33
    public function getExpectedSignature()
34
    {
35
        return $this->expectedSignature;
×
36
    }
37

38
    /**
39
     * @return string
40
     */
41
    public function getActualSignature()
42
    {
43
        return $this->actualSignature;
×
44
    }
45
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc