diff --git a/composer.json b/composer.json index 9cf991e..6b50a35 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "require": { "php": ">=8.1.0", "guzzlehttp/guzzle": ">7.5", - "guzzlehttp/oauth-subscriber": "0.6.*" + "guzzlehttp/oauth-subscriber": "0.8.*" }, "require-dev": { "phpunit/phpunit": ">9.0" diff --git a/test/phpSmug/Tests/PsrComplianceTest.php b/test/phpSmug/Tests/PsrComplianceTest.php deleted file mode 100644 index 42aefa8..0000000 --- a/test/phpSmug/Tests/PsrComplianceTest.php +++ /dev/null @@ -1,47 +0,0 @@ -markTestSkipped( - 'Needs linter to check PSR compliance' - ); - } - - // Run linter in dry-run mode so it changes nothing. - exec( - escapeshellcmd('vendor/bin/php-cs-fixer fix --diff -v --dry-run --using-cache=no .').' 2>&1', - $output, - $return_var - ); - - /* If we've got output, pop the first row ("Fixed all files...") and shift - off the last three lines. */ - if ($output) { - array_pop($output); - array_shift($output); - array_shift($output); - array_shift($output); - } - - // Check shell return code: if nonzero, report the output as a failure. - $this->assertEquals( - 0, - $return_var, - "PSR linter reported errors in: \n\t".implode("\n\t", $output) - ); - } -}