validate(); $this->assertEquals([], $xml->getErrors()); $this->assertTrue($result); $this->assertEquals('animal', $xml->name); $this->assertTrue($xml->attribute); $this->assertEquals('http://example.com/schema/sample', $xml->namespace); $this->assertEquals('sample', $xml->prefix); $this->assertFalse($xml->wrapped); /** @var $xml Xml */ $xml = Reader::readFromYaml(<<validate(); $this->assertEquals([], $xml->getErrors()); $this->assertTrue($result); // attribute Default value is false. $this->assertFalse($xml->attribute); // wrapped Default value is false. $this->assertFalse($xml->wrapped); } }