public static function assertXMLValid($XML, string $message = '')
    {
        AssertHelper::assertMethodDependency(__CLASS__, __TRAIT__, 'assertXMLValid', ['assertThat']);
        self::assertThat($XML, new XMLValidConstraint(), $message);
    }
public static function assertXMLValid($XML, string $message = '')
    {
        AssertHelper::assertMethodDependency(__CLASS__, __TRAIT__, 'assertXMLValid', ['assertThat']);
        self::assertThat($XML, new XMLValidConstraint(), $message);
    }
public static function assertXMLValid ( $ XML , string $ message = '' ) { AssertHelper :: assertMethodDependency ( __CLASS__ , __TRAIT__ , 'assertXMLValid' , [ 'assertThat' ] ) ; self :: assertThat ( $ XML , new XMLValidConstraint ( ) , $ message ) ; }
Assert string is valid XML.

@param string $XML
@param string $message
Assert string is valid XML .