Passed
Pull Request — master (#554)
by Alejandro
05:43
created

InvalidShortCodeExceptionTest::providePrevious()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ShlinkioTest\Shlink\Core\Exception;
6
7
use PHPUnit\Framework\TestCase;
8
use Shlinkio\Shlink\Core\Exception\InvalidShortCodeException;
9
10
class InvalidShortCodeExceptionTest extends TestCase
11
{
12
    /** @test */
13
    public function properlyCreatesExceptionFromNotFoundShortCode(): void
14
    {
15
        $e = InvalidShortCodeException::fromNotFoundShortCode('abc123');
16
17
        $this->assertEquals('No URL found for short code "abc123"', $e->getMessage());
18
    }
19
}
20