From 99be1a7c9e3328a9298c90caa99f51db5f77c5b3 Mon Sep 17 00:00:00 2001 From: William Desportes Date: Wed, 24 Mar 2021 02:14:13 +0100 Subject: [PATCH] Import "JunitErrorFormatterTest - do not rely on internet and GitHub being up" Source: https://github.com/phpstan/phpstan-src/commit/e5e75803e8bda6672b0d65cd660f2dd5f5dcee41 --- .../JunitErrorFormatterTest.php | 2 +- tests/ErrorFormatter/junit-schema.xsd | 116 ++++++++++++++++++ 2 files changed, 117 insertions(+), 1 deletion(-) create mode 100644 tests/ErrorFormatter/junit-schema.xsd diff --git a/tests/ErrorFormatter/JunitErrorFormatterTest.php b/tests/ErrorFormatter/JunitErrorFormatterTest.php index 25700c0..62f9bdd 100644 --- a/tests/ErrorFormatter/JunitErrorFormatterTest.php +++ b/tests/ErrorFormatter/JunitErrorFormatterTest.php @@ -180,7 +180,7 @@ public function testFormatErrors( $xml->loadXML($this->getOutputContent()); $this->assertTrue( - $xml->schemaValidate('https://raw.githubusercontent.com/junit-team/junit5/r5.5.1/platform-tests/src/test/resources/jenkins-junit.xsd'), + $xml->schemaValidate(__DIR__ . '/junit-schema.xsd'), 'Schema do not validate' ); diff --git a/tests/ErrorFormatter/junit-schema.xsd b/tests/ErrorFormatter/junit-schema.xsd new file mode 100644 index 0000000..0bb577c --- /dev/null +++ b/tests/ErrorFormatter/junit-schema.xsd @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +