Passed
Pull Request — master (#100)
by
unknown
23:41 queued 21:10
created

NumverifyApiResponseExceptionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
c 0
b 0
f 0
dl 0
loc 13
rs 10
wmc 1
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * This file is part of the Numverify API Client for PHP.
7
 *
8
 * (c) 2024 Eric Sizemore <[email protected]>
9
 * (c) 2018-2021 Mark Rogoyski <[email protected]>
10
 *
11
 * This source file is subject to the MIT license. For the full copyright,
12
 * license information, and credits/acknowledgements, please view the LICENSE
13
 * and README files that were distributed with this source code.
14
 */
15
16
namespace Numverify\Tests\Exception;
17
18
use Numverify\Exception\NumverifyApiResponseException;
19
use PHPUnit\Framework\Attributes\CoversClass;
20
use PHPUnit\Framework\TestCase;
21
22
/**
23
 * @internal
24
 */
25
#[CoversClass(NumverifyApiResponseException::class)]
26
class NumverifyApiResponseExceptionTest extends TestCase
27
{
28
    /**
29
     * Case getMessage.
30
     */
31
    public function testGetMessage(): void
32
    {
33
        $expectedMessage               = 'Test message';
34
        $numverifyApiResponseException = new NumverifyApiResponseException($expectedMessage);
35
36
        $message = $numverifyApiResponseException->getMessage();
37
        self::assertSame($expectedMessage, $message);
38
    }
39
}
40