mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-26 22:48:27 +03:00
20 lines
506 B
PHP
20 lines
506 B
PHP
|
<?php
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace ShlinkioTest\Shlink\Installer\Exception;
|
||
|
|
||
|
use Shlinkio\Shlink\Installer\Exception\MissingRequiredOptionException;
|
||
|
use PHPUnit\Framework\TestCase;
|
||
|
|
||
|
class MissingRequiredOptionExceptionTest extends TestCase
|
||
|
{
|
||
|
/**
|
||
|
* @test
|
||
|
*/
|
||
|
public function fromOptionsGeneratesExpectedMessage()
|
||
|
{
|
||
|
$e = MissingRequiredOptionException::fromOption('foo');
|
||
|
$this->assertEquals('The "foo" is required and can\'t be empty', $e->getMessage());
|
||
|
}
|
||
|
}
|