mirror of
https://github.com/yiisoft/yii2.git
synced 2025-10-29 17:48:15 +08:00
Raise version min PHP 7.3.
This commit is contained in:
@ -18,7 +18,7 @@ use yiiunit\TestCase;
|
||||
*/
|
||||
class MarkdownTest extends TestCase
|
||||
{
|
||||
protected function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
@ -43,12 +43,11 @@ TEXT;
|
||||
$this->assertEquals(Markdown::process($text), Markdown::process($text, 'gfm-comment'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \yii\base\InvalidParamException
|
||||
* @expectedExceptionMessage Markdown flavor 'undefined' is not defined.
|
||||
*/
|
||||
public function testProcessInvalidParamException()
|
||||
public function testProcessInvalidArgumentException()
|
||||
{
|
||||
$this->expectException(\yii\base\InvalidArgumentException::class);
|
||||
$this->expectExceptionMessage("Markdown flavor 'undefined' is not defined.");
|
||||
|
||||
Markdown::process('foo', 'undefined');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user