From 62774ed3b2458df632dde33c5fe1821fba7e0ae5 Mon Sep 17 00:00:00 2001 From: Carlos C Soto Date: Wed, 8 Jan 2020 13:52:45 -0600 Subject: [PATCH 1/3] fix assertion is not compatible with php 7.0 --- tests/XmlSchemaValidatorTests/LibXmlExceptionTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/XmlSchemaValidatorTests/LibXmlExceptionTest.php b/tests/XmlSchemaValidatorTests/LibXmlExceptionTest.php index 1c537a5..006940f 100644 --- a/tests/XmlSchemaValidatorTests/LibXmlExceptionTest.php +++ b/tests/XmlSchemaValidatorTests/LibXmlExceptionTest.php @@ -42,7 +42,7 @@ function () { for ($previous = $foundException; null !== $previous; $previous = $previous->getPrevious()) { $chain[] = $previous->getMessage(); } - $this->assertStringContainsString('Start tag expected', $foundException->getMessage()); + $this->assertStringStartsWith('Start tag expected', $foundException->getMessage()); $this->assertCount(1, $chain, 'It should only exists 1 error'); } From 4ecd33fecc335c212d1062b654c0ffef81e45b0f Mon Sep 17 00:00:00 2001 From: Carlos C Soto Date: Wed, 8 Jan 2020 13:53:02 -0600 Subject: [PATCH 2/3] fix library name --- TODO.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index dac23bb..490f38a 100644 --- a/TODO.md +++ b/TODO.md @@ -1,4 +1,4 @@ -# eclipxe/xmlschemavalidator To Do +# eclipxe/XmlSchemaValidator To Do - [ ] Document usage examples From 727bb20482d40c5eaa49d33fdeb37d501d10360f Mon Sep 17 00:00:00 2001 From: Carlos C Soto Date: Wed, 8 Jan 2020 13:53:36 -0600 Subject: [PATCH 3/3] run phpunit with verbose & without testdox --- .scrutinizer.yml | 2 +- .travis.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 6370895..f7dfc91 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -14,7 +14,7 @@ build: tests: override: - php-scrutinizer-run --enable-security-analysis - - command: vendor/bin/phpunit --testdox --coverage-clover=coverage.clover + - command: vendor/bin/phpunit --verbose --coverage-clover=coverage.clover coverage: file: coverage.clover format: clover diff --git a/.travis.yml b/.travis.yml index 418473a..6232e38 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,7 @@ before_script: script: - vendor/bin/phpcs -sp src/ tests/ - vendor/bin/php-cs-fixer fix --using-cache=no --dry-run --verbose - - vendor/bin/phpunit --testdox --verbose + - vendor/bin/phpunit --verbose - test $TRAVIS_PHP_VERSION != "7.0" && vendor/bin/phpstan analyse --no-progress --level max src/ tests/ || true - test $TRAVIS_PHP_VERSION != "7.0" && vendor/bin/psalm --no-progress || true