2017 © Pedro Peláez
 

library phpunit-xsdvalidation

XSD schema validation constraint for PHPUnit

image

jasny/phpunit-xsdvalidation

XSD schema validation constraint for PHPUnit

  • Sunday, April 6, 2014
  • by jasny
  • Repository
  • 0 Watchers
  • 1 Stars
  • 807 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 3 Versions
  • 4 % Grown

The README.md

XSD schema validation constraint for PHPUnit

Installation

   composer install jasny/phpunit-xsdvalidation

Usage

   $constraint = new Jasny\PHPUnit\Constraint\XSDValidation("myschema.xsd");

   $xml = $this->object->doSomething();
   $this->assertThat($xml, $constraint);

Usage with mock object

   $constraint = new Jasny\PHPUnit\Constraint\XSDValidation("myschema.xsd");

   $mock = $this->getMock('Foo\Bar', ['doSomething']);
   $mock->expects($this->once())
        ->method('doSomething')
        ->with($constraint);

The Versions

06/04 2014

dev-master

9999999-dev

XSD schema validation constraint for PHPUnit

  Sources   Download

MIT

phpunit xml xsd

06/04 2014

v1.0.1

1.0.1.0

XSD schema validation constraint for PHPUnit

  Sources   Download

MIT

28/03 2014

v1.0.0

1.0.0.0

XSD schema validation constraint for PHPUnit

  Sources   Download

MIT