public static function assertXMLMatchesXSD($XSD, $XML, string $message = '')
    {
        if (!is_string($XSD)) {
            throw AssertHelper::createArgumentException(__TRAIT__, 'assertXMLMatchesXSD', 'string', $XSD);
        }

        AssertHelper::assertMethodDependency(__CLASS__, __TRAIT__, 'assertXMLMatchesXSD', ['assertThat']);
        self::assertThat($XML, new XMLMatchesXSDConstraint($XSD), $message);
    }
public static function assertXMLMatchesXSD($XSD, $XML, string $message = '')
    {
        if (!is_string($XSD)) {
            throw AssertHelper::createArgumentException(__TRAIT__, 'assertXMLMatchesXSD', 'string', $XSD);
        }

        AssertHelper::assertMethodDependency(__CLASS__, __TRAIT__, 'assertXMLMatchesXSD', ['assertThat']);
        self::assertThat($XML, new XMLMatchesXSDConstraint($XSD), $message);
    }
public static function assertXMLMatchesXSD ( $ XSD , $ XML , string $ message = '' ) { if ( ! is_string ( $ XSD ) ) { throw AssertHelper :: createArgumentException ( __TRAIT__ , 'assertXMLMatchesXSD' , 'string' , $ XSD ) ; } AssertHelper :: assertMethodDependency ( __CLASS__ , __TRAIT__ , 'assertXMLMatchesXSD' , [ 'assertThat' ] ) ; self :: assertThat ( $ XML , new XMLMatchesXSDConstraint ( $ XSD ) , $ message ) ; }
Assert string is XML formatted as defined by the XML Schema Definition.

@param string $XML
@param string $XSD
@param string $message
Assert string is XML formatted as defined by the XML Schema Definition .