mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Prevent undefined property errors in XEXMLParser use cases
This commit is contained in:
parent
bfa8ea5ddc
commit
e0ba5aa5b6
2 changed files with 22 additions and 9 deletions
|
|
@ -23,5 +23,8 @@ class XeXmlParserTest extends \Codeception\Test\Unit
|
|||
$this->assertEquals('라이믹스', $output->layout->author->name->body);
|
||||
$this->assertEquals('웹 폰트', $output->layout->extra_vars->var[1]->title->body);
|
||||
$this->assertEquals('Noto Sans', $output->layout->extra_vars->var[1]->options[0]->attrs->value);
|
||||
|
||||
$this->assertInstanceOf(\Rhymix\Framework\Parsers\XEXMLParser::class, $output);
|
||||
$this->assertNull($output->layout->attrs->foo);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue