PHP Class GrumPHPTest\Linter\Xml\XmlLinterTest

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Show file Open project: phpro/grumphp

Protected Properties

Property Type Description
$linter GrumPHP\Linter\Xml\XmlLinter

Public Methods

Method Description
it_can_handle_xincludes ( $fixture, $errors )
it_should_validate_both_xsd_and_dtd ( $fixture, $errors )
it_should_validate_xml_for_syntax_errors ( $fixture, $errors )
it_should_validate_xml_with_dtd ( $fixture, $errors, $loadFromNet )
it_should_validate_xml_with_xsd ( $fixture, $errors, $loadFromNet )
provideDtdAndSchemeValidation ( ) : array
provideDtdValidation ( ) : array
provideSchemeValidation ( ) : array
provideXincludeValidation ( ) : array
provideXmlValidation ( ) : array

Protected Methods

Method Description
setUp ( )

Private Methods

Method Description
getFixture ( string $fixture ) : SplFileInfo
validateFixture ( string $fixture, integer $errors )

Method Details

it_can_handle_xincludes() public method

public it_can_handle_xincludes ( $fixture, $errors )

it_should_validate_both_xsd_and_dtd() public method

public it_should_validate_both_xsd_and_dtd ( $fixture, $errors )

it_should_validate_xml_for_syntax_errors() public method

public it_should_validate_xml_for_syntax_errors ( $fixture, $errors )

it_should_validate_xml_with_dtd() public method

public it_should_validate_xml_with_dtd ( $fixture, $errors, $loadFromNet )

it_should_validate_xml_with_xsd() public method

public it_should_validate_xml_with_xsd ( $fixture, $errors, $loadFromNet )

provideDtdAndSchemeValidation() public method

provideDtdValidation() public method

public provideDtdValidation ( ) : array
return array

provideSchemeValidation() public method

public provideSchemeValidation ( ) : array
return array

provideXincludeValidation() public method

public provideXincludeValidation ( ) : array
return array

provideXmlValidation() public method

public provideXmlValidation ( ) : array
return array

setUp() protected method

protected setUp ( )

Property Details

$linter protected property

protected XmlLinter,GrumPHP\Linter\Xml $linter
return GrumPHP\Linter\Xml\XmlLinter