Completed
Pull Request — master (#222)
by Alejandro
09:31
created

fromOptionsGeneratesExpectedMessage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace ShlinkioTest\Shlink\Installer\Exception;
5
6
use Shlinkio\Shlink\Installer\Exception\MissingRequiredOptionException;
7
use PHPUnit\Framework\TestCase;
8
9
class MissingRequiredOptionExceptionTest extends TestCase
10
{
11
    /**
12
     * @test
13
     */
14
    public function fromOptionsGeneratesExpectedMessage()
15
    {
16
        $e = MissingRequiredOptionException::fromOption('foo');
17
        $this->assertEquals('The "foo" is required and can\'t be empty', $e->getMessage());
18
    }
19
}
20