From 075c26e097d4035f885f20b4ff114ac63a61925b Mon Sep 17 00:00:00 2001 From: cytopia Date: Fri, 26 May 2017 14:18:14 +0200 Subject: [PATCH] DVL-013 Remove git submodule dependencies in phpMyAdmin --- .../phpmyadmin-4.7/vendor/codacy/coverage | 1 - .../vendor/codacy/coverage/LICENSE | 21 + .../vendor/codacy/coverage/README.md | 158 ++++++++ .../vendor/codacy/coverage/bin/codacycoverage | 29 ++ .../vendor/codacy/coverage/circle.yml | 13 + .../vendor/codacy/coverage/composer.json | 27 ++ .../vendor/codacy/coverage/phpunit.xml.dist | 34 ++ .../src/Codacy/Coverage/Application.php | 23 ++ .../src/Codacy/Coverage/Command/Clover.php | 151 ++++++++ .../src/Codacy/Coverage/Command/Phpunit.php | 33 ++ .../Codacy/Coverage/Parser/CloverParser.php | 146 +++++++ .../src/Codacy/Coverage/Parser/Parser.php | 57 +++ .../Coverage/Parser/PhpUnitXmlParser.php | 124 ++++++ .../Codacy/Coverage/Report/CoverageReport.php | 48 +++ .../src/Codacy/Coverage/Report/FileReport.php | 63 +++ .../Codacy/Coverage/Util/CodacyApiClient.php | 65 ++++ .../src/Codacy/Coverage/Util/GitClient.php | 45 +++ .../src/Codacy/Coverage/Util/JsonProducer.php | 87 +++++ .../Coverage/Parser/CloverParserTest.php | 61 +++ .../Codacy/Coverage/Parser/ParserTest.php | 34 ++ .../Coverage/Parser/PhpUnitXmlParserTest.php | 51 +++ .../Codacy/Coverage/Util/GitClientTest.php | 13 + .../coverage/tests/res/clover/clover.xml | 365 ++++++++++++++++++ .../res/clover/clover_without_packages.xml | 359 +++++++++++++++++ .../codacy/coverage/tests/res/expected.json | 179 +++++++++ .../Parser/CloverParser.php.xml | 229 +++++++++++ .../res/phpunit-clover/Parser/Parser.php.xml | 74 ++++ .../Parser/PhpUnitXmlParser.php.xml | 176 +++++++++ .../Report/CoverageReport.php.xml | 51 +++ .../phpunit-clover/Report/FileReport.php.xml | 64 +++ .../res/phpunit-clover/Util/EmptyFile.php.xml | 18 + .../res/phpunit-clover/Util/GitClient.php.xml | 38 ++ .../phpunit-clover/Util/JsonProducer.php.xml | 72 ++++ .../tests/res/phpunit-clover/clover.xml | 244 ++++++++++++ .../tests/res/phpunit-clover/index.xml | 185 +++++++++ .../tests/res/phpunitxml/Api/Api.php.xml | 17 + .../res/phpunitxml/CodacyPhpCoverage.php.xml | 17 + .../tests/res/phpunitxml/Config.php.xml | 56 +++ .../res/phpunitxml/Git/GitClient.php.xml | 38 ++ .../phpunitxml/Parser/CloverParser.php.xml | 224 +++++++++++ .../res/phpunitxml/Parser/Parser.php.xml | 57 +++ .../Parser/PhpUnitXmlParser.php.xml | 118 ++++++ .../phpunitxml/Report/CoverageReport.php.xml | 51 +++ .../res/phpunitxml/Report/FileReport.php.xml | 64 +++ .../phpunitxml/Report/JsonProducer.php.xml | 72 ++++ .../coverage/tests/res/phpunitxml/index.xml | 221 +++++++++++ _config.yml | 1 - 47 files changed, 4272 insertions(+), 2 deletions(-) delete mode 160000 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/LICENSE create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/README.md create mode 100755 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/bin/codacycoverage create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/circle.yml create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/composer.json create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/phpunit.xml.dist create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Application.php create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Command/Clover.php create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Command/Phpunit.php create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Parser/CloverParser.php create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Parser/Parser.php create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Parser/PhpUnitXmlParser.php create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Report/CoverageReport.php create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Report/FileReport.php create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Util/CodacyApiClient.php create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Util/GitClient.php create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Util/JsonProducer.php create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/Codacy/Coverage/Parser/CloverParserTest.php create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/Codacy/Coverage/Parser/ParserTest.php create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/Codacy/Coverage/Parser/PhpUnitXmlParserTest.php create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/Codacy/Coverage/Util/GitClientTest.php create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/clover/clover.xml create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/clover/clover_without_packages.xml create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/expected.json create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Parser/CloverParser.php.xml create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Parser/Parser.php.xml create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Parser/PhpUnitXmlParser.php.xml create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Report/CoverageReport.php.xml create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Report/FileReport.php.xml create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Util/EmptyFile.php.xml create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Util/GitClient.php.xml create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Util/JsonProducer.php.xml create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/clover.xml create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/index.xml create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Api/Api.php.xml create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/CodacyPhpCoverage.php.xml create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Config.php.xml create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Git/GitClient.php.xml create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Parser/CloverParser.php.xml create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Parser/Parser.php.xml create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Parser/PhpUnitXmlParser.php.xml create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Report/CoverageReport.php.xml create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Report/FileReport.php.xml create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Report/JsonProducer.php.xml create mode 100644 .devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/index.xml delete mode 100644 _config.yml diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage deleted file mode 160000 index c0b3a028..00000000 --- a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c0b3a02883bd80f0955c2478193304ddbef23e56 diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/LICENSE b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/LICENSE new file mode 100644 index 00000000..2bf24b9b --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. \ No newline at end of file diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/README.md b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/README.md new file mode 100644 index 00000000..d3ffdd1f --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/README.md @@ -0,0 +1,158 @@ +[![Codacy Badge](https://api.codacy.com/project/badge/grade/d992a862b1994805907ec277e16b0fda)](https://www.codacy.com/app/Codacy/php-codacy-coverage) +[![Codacy Badge](https://api.codacy.com/project/badge/coverage/d992a862b1994805907ec277e16b0fda)](https://www.codacy.com/app/Codacy/php-codacy-coverage) +[![Circle CI](https://circleci.com/gh/codacy/php-codacy-coverage.svg?style=shield&circle-token=:circle-token)](https://circleci.com/gh/codacy/php-codacy-coverage) +[![Latest Stable Version](https://poser.pugx.org/codacy/coverage/version)](https://packagist.org/packages/codacy/coverage) + +# Codacy PHP Coverage Reporter +[Codacy](https://codacy.com/) coverage support for PHP. Get coverage reporting and code analysis for PHP from Codacy. + +# Prerequisites + +- PHP 5.3 or later +- One of the following coverage report formats + - Clover XML (e.g. ```--coverage-clover``` in PHPUnit) + - PHPUnit XML (e.g. ```--coverage-xml``` in PHPUnit) + +# Installation + +Setup codacy-coverage with Composer, just add the following to your composer.json: + +```js +// composer.json +{ + "require-dev": { + "codacy/coverage": "dev-master" + } +} +``` + +Download the dependencies by running Composer in the directory of your `composer.json`: + +```sh +# install +$ php composer.phar install --dev +# update +$ php composer.phar update codacy/coverage --dev +``` + +codacy-coverage library is available on [Packagist](https://packagist.org/packages/codacy/coverage). + +Add the autoloader to your php script: + +```php +require_once 'vendor/autoload.php'; +``` + +> Note: +We have php5-curl dependency, if you have issues related to curl_init() please install it with: +``` +sudo apt-get install php5-curl +``` + +## Updating Codacy + +To update Codacy, you will need your project API token. You can find the token in Project -> Settings -> Integrations -> Project API. + +Then set it in your terminal, replacing %Project_Token% with your own token: + +``` +export CODACY_PROJECT_TOKEN=%Project_Token% +``` + +> Note: You should keep your API token well **protected**, as it grants owner permissions to your projects. + +> To send coverage in the enterprise version you should: +``` +export CODACY_API_BASE_URL=:16006 +``` + +# Usage + +Run ```vendor/bin/codacycoverage``` to see a list of commands. + +#### Basic usage for Clover format: + +```vendor/bin/codacycoverage clover``` + +#### Basic usage for PHPUnit XML format: + +```php vendor/bin/codacycoverage phpunit``` + +By default we assume that +- your Clover coverage report is saved in ```build/logs/clover.xml``` +- your PHPUnit XML report is saved in the directory ```build/coverage-xml``` + +#### Optional parameters: + +You can specify the path to your report with the second parameter: + +- Clover XML + - ```php vendor/bin/codacycoverage clover path/to/a-clover.xml``` +- PHPUnit XML + - ```php vendor/bin/codacycoverage phpunit directory/path/to/phpunitreport``` + +Even more control: + +- ```--base-url=``` defaults to http://codacy.com +- ```--git-commit=``` defaults to the last commit hash + +## Circle CI + +This project sends its own coverage during the build in circleCI. +Feel free to check our `circle.yml`, and send your coverage as a step of your build process. + +## Travis CI + +Add codacycoverage to your `.travis.yml`: + +```yml +# .travis.yml +language: php +php: + - 5.3 + - 5.4 + - 5.5 + - 5.6 + - hhvm + +before_script: + - curl -s http://getcomposer.org/installer | php + - php composer.phar install -n + +script: + - php vendor/bin/phpunit + +after_script: + - php vendor/bin/codacycoverage clover path/to/clover.xml +``` + +## Troubleshooting + +If you have a fatal error regarding curl_init(): +``` +PHP Fatal error: Uncaught Error: Call to undefined function Codacy\Coverage\Util\curl_init() in /src/Codacy/Coverage/Util/CodacyApiClient.php:30 +``` +Run: ```sudo apt-get install php5-curl``` + +## What is Codacy? + +[Codacy](https://www.codacy.com/) is an Automated Code Review Tool that monitors your technical debt, helps you improve your code quality, teaches best practices to your developers, and helps you save time in Code Reviews. + +### Among Codacy’s features: + +- Identify new Static Analysis issues +- Commit and Pull Request Analysis with GitHub, BitBucket/Stash, GitLab (and also direct git repositories) +- Auto-comments on Commits and Pull Requests +- Integrations with Slack, HipChat, Jira, YouTrack +- Track issues in Code Style, Security, Error Proneness, Performance, Unused Code and other categories + +Codacy also helps keep track of Code Coverage, Code Duplication, and Code Complexity. + +Codacy supports PHP, Python, Ruby, Java, JavaScript, and Scala, among others. + +### Free for Open Source + +Codacy is free for Open Source projects. + +## License +[MIT](LICENSE) diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/bin/codacycoverage b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/bin/codacycoverage new file mode 100755 index 00000000..aed2ae69 --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/bin/codacycoverage @@ -0,0 +1,29 @@ +#!/usr/bin/env php +run(); diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/circle.yml b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/circle.yml new file mode 100644 index 00000000..350acd95 --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/circle.yml @@ -0,0 +1,13 @@ +machine: + php: + version: 5.6.17 + +dependencies: + pre: + - curl -s http://getcomposer.org/installer | php + - php composer.phar install -n + +test: + post: + - php vendor/bin/phpunit + - php bin/codacycoverage clover diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/composer.json b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/composer.json new file mode 100644 index 00000000..cb69dd42 --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/composer.json @@ -0,0 +1,27 @@ +{ + "name": "codacy/coverage", + "description": "Sends PHP test coverage information to Codacy.", + "homepage": "https://github.com/codacy/php-codacy-coverage", + "type": "library", + "require": { + "php": ">=5.3.3", + "gitonomy/gitlib": "~0.1", + "symfony/console": "~2.5|~3.0" + }, + "require-dev": { + "phpunit/phpunit": "~4.5" + }, + "bin": ["bin/codacycoverage"], + "autoload": { + "classmap": [ + "src/" + ] + }, + "license": "MIT", + "authors": [ + { + "name": "Jakob Pupke", + "email": "jakob.pupke@gmail.com" + } + ] +} diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/phpunit.xml.dist b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/phpunit.xml.dist new file mode 100644 index 00000000..ea3bca5e --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/phpunit.xml.dist @@ -0,0 +1,34 @@ + + + + + tests + + + + + + + + + + + + + src + + src/Codacy/Coverage/Util/CodacyApiClient.php + src/Codacy/Coverage/CodacyPhpCoverage.php + + + + diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Application.php b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Application.php new file mode 100644 index 00000000..1ee6ded2 --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Application.php @@ -0,0 +1,23 @@ +add(new CloverCommand()); + $this->add(new PhpunitCommand()); + } +} diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Command/Clover.php b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Command/Clover.php new file mode 100644 index 00000000..85c219d1 --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Command/Clover.php @@ -0,0 +1,151 @@ +setName("clover") + ->setDescription("Send coverage results in clover format") + ->addArgument( + "path_to_coverage_results", + InputArgument::OPTIONAL, + "Path where coverage results are saved: XML file for clover format, directory containing the index.xml for phpunit format" + ) + ->addOption( + "git-commit", + null, + InputOption::VALUE_REQUIRED, + "Commit hash of results to be send" + ) + ->addOption( + "base-url", + null, + InputOption::VALUE_REQUIRED, + "Codacy base url" + ); + } + + protected function execute(InputInterface $input, OutputInterface $output) + { + $projectToken = $this->getProjectToken(); + + $parser = $this->getParser($input->getArgument("path_to_coverage_results")); + $jsonProducer = new JsonProducer(); + $jsonProducer->setParser($parser); + + $commit = $this->getCommitHash($input->getOption("git-commit")); + + $baseUrl = $this->getBaseCodacyUrl($input->getOption("base-url")); + + $data = $jsonProducer->makeJson(); + + if ($output->isVerbose()) { + $output->writeln("Sending coverage results to " . $baseUrl); + $output->writeln("Generated JSON:"); + $output->writeln($data); + } + + $client = new CodacyApiClient($baseUrl, $projectToken); + $result = $client->sendCoverage($commit, $data); + if ($output->isVerbose()) { + $output->writeln($result); + } + } + + /** + * Get parser of current format type. + * + * @param string $path Path to clover.xml + * + * @return CloverParser + */ + protected function getParser($path = null) + { + $path = is_null($path) ? + join(DIRECTORY_SEPARATOR, array('build', 'logs', 'clover.xml')) : + $path; + return new CloverParser($path); + } + + /** + * Return Codacy Project Token. + * + * @return string Project token + * + * @throws \InvalidArgumentException If Token not specified + */ + protected function getProjectToken() + { + $projectToken = getenv("CODACY_PROJECT_TOKEN"); + if ($projectToken == false) { + throw new \InvalidArgumentException( + "Cannot continue with execution as long as your project token is not set as an environmental variable." + . PHP_EOL . "Please type: export CODACY_PROJECT_TOKEN=" + ); + } + + return urlencode($projectToken); + } + + /** + * Get Git commit hash of project + * + * @param string $hash Specified hash + * + * @return string Git commit hash + * + * @throws \InvalidArgumentException When bad hash specified, or can't get commit hash + */ + protected function getCommitHash($hash = null) + { + if (!$hash) { + $gClient = new GitClient(getcwd()); + return $gClient->getHashOfLatestCommit(); + } + + if (strlen($hash) != 40) { + throw new \InvalidArgumentException( + sprintf("Invalid git commit hash %s specified", $hash) + ); + } + + return urlencode($hash); + } + + /** + * Return base Codacy Project URL + * + * @param string $url HTTP URL for codacy + * + * @return string Base Codacy Project URL + */ + protected function getBaseCodacyUrl($url = null) + { + if ($url) { + return $url; + } + $url = getenv("CODACY_API_BASE_URL"); + + return $url ? $url : "https://api.codacy.com"; + } +} diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Command/Phpunit.php b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Command/Phpunit.php new file mode 100644 index 00000000..fdea4de8 --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Command/Phpunit.php @@ -0,0 +1,33 @@ +setName("phpunit") + ->setDescription("Send coverage results in phpunit format"); + } + + protected function getParser($path = null) + { + $path = is_null($path) ? + "build" . DIRECTORY_SEPARATOR . "coverage-xml" : + $path; + + $parser = new PhpUnitXmlParser($path . DIRECTORY_SEPARATOR . "index.xml"); + $parser->setDirOfFileXmls($path); + + return $parser; + } +} diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Parser/CloverParser.php b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Parser/CloverParser.php new file mode 100644 index 00000000..2accbde4 --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Parser/CloverParser.php @@ -0,0 +1,146 @@ + + */ +class CloverParser extends XMLParser implements IParser +{ + + /** + * Extracts basic information about coverage report and delegates + * more detailed extraction work to _makeFileReports() method. + * @return CoverageReport $report The CoverageReport object + */ + public function makeReport() + { + $project = $this->element->project; + $projectMetrics = $project->metrics; + $coveredStatements = intval($projectMetrics['coveredstatements']); + $statementsTotal = intval($projectMetrics['statements']); + $reportTotal = round($this->safeDivision($coveredStatements, $statementsTotal) * 100); + $fileReports = $this->makeFileReports($project); + $report = new CoverageReport($reportTotal, $fileReports); + return $report; + } + + /** + * Takes the root \SimpleXMLElement object of the parsed file + * and decides on how to iterate it to extract information of all + * .. nodes. + * @param \SimpleXMLElement $node the root XML node. + * @return array holding FileReport objects + */ + private function makeFileReports(\SimpleXMLElement $node) + { + $fileReports = array(); + /* + * Most clover reports will have project/package/file/line xPath. + * But there could be files that are not part of any package, i.e files that + * that do not declare namespace. + */ + if ($node->file->count() > 0) { + // so there is a file without package + $fileReports = $this->makeFileReportsFromFiles($node->file, $fileReports); + } + if ($node->package->count() > 0) { + $fileReports = $this->makeFileReportsFromPackages($node->package, $fileReports); + } + return $fileReports; + } + + /** + * Iterates all over all .. nodes. + * @param \SimpleXMLElement $node The XML node holding the file nodes. + * @param array $fileReports array of FileReport objects + * @return array holding FileReport objects + */ + private function makeFileReportsFromFiles(\SimpleXMLElement $node, $fileReports) + { + foreach ($node as $file) { + // iterate files in the package + $countStatement = intval($file->metrics['statements']); + $countCoveredStatements = intval($file->metrics['coveredstatements']); + if ($countStatement == 0) { + $fileTotal = 0; + } else { + $fileTotal = round($this->safeDivision($countCoveredStatements, $countStatement) * 100); + } + $fileName = $this->getRelativePath($file['name']); + $lineCoverage = $this->getLineCoverage($file); + $fileReport = new FileReport($fileTotal, $fileName, $lineCoverage); + array_push($fileReports, $fileReport); + } + return $fileReports; + } + + /** + * Iterates over all ... nodes and calls _makeFileReportsFromFiles on them + * @param \SimpleXMLElement $node The XML node holding all ... nodes + * @param array $fileReports array of FileReport objects + * @return array holding FileReport objects + */ + private function makeFileReportsFromPackages(\SimpleXMLElement $node, $fileReports) + { + // iterate all packages + foreach ($node as $package) { + $fileReports = $this->makeFileReportsFromFiles($package->file, $fileReports); + } + return $fileReports; + } + + /** + * Iterates all nodes and produces an array holding line coverage information. + * Only adds lines of type "stmt" and with count greater than 0. + * @param \SimpleXMLElement $node The XML node holding the nodes + * @return array: (lineNumber -> hits) + */ + private function getLineCoverage(\SimpleXMLElement $node) + { + $lineCoverage = (object)array(); + foreach ($node as $line) { + $count = intval($line['count']); + // iterate all lines in that file + if ($line['type'] == 'stmt' && $count > 0) { + $lineNr = (string)$line['num']; + $hit = $count; + $lineCoverage->$lineNr = $hit; + } + } + return $lineCoverage; + } + + /** + * Cuts the file name so we have relative path to projectRoot. + * In a clover file file names are saved from / on. + * We are only interested in relative filename + * @param \SimpleXMLElement $fileName The filename attribute + * @return string The relative path of that file + */ + private function getRelativePath(\SimpleXMLElement $fileName) + { + $prefix = $this->rootDir . DIRECTORY_SEPARATOR; + $str = (string)$fileName; + + if (substr($str, 0, strlen($prefix)) == $prefix) { + $str = substr($str, strlen($prefix)); + } + + return $str; + } + + private function safeDivision($a, $b) + { + if ($b === 0) { + return 0; + } + return $a / $b; + } +} diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Parser/Parser.php b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Parser/Parser.php new file mode 100644 index 00000000..daee4a48 --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Parser/Parser.php @@ -0,0 +1,57 @@ + + */ +interface IParser +{ + public function makeReport(); +} + +/** + * Class XMLParser + * The superclass of all parsers that parse XML files. + * @author Jakob Pupke + */ +abstract class XMLParser +{ + /** + * @var \SimpleXMLElement + */ + protected $element; + + /** + * @var null|string The root directory. Can be other than current working directory + * in order to make tests pass against the static reports in tests/res directory. + */ + protected $rootDir; + + /** + * Construct PhpUnitXmlParser and set the XML object as member field. + * All XML parser classes inherit this constructor. + * @param string $rootDir Is only for making tests pass. + * @param string $path Path to XML file + */ + public function __construct($path, $rootDir = null) + { + if (file_exists($path)) { + if ($rootDir == null) { + $this->rootDir = getcwd(); + } else { + $this->rootDir = $rootDir; + } + $this->element = simplexml_load_file($path); + } else { + throw new \InvalidArgumentException( + "Unable to load the xml file. Make sure path is properly set. " . + "Using: \"$path\"", E_USER_ERROR + ); + } + } + +} diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Parser/PhpUnitXmlParser.php b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Parser/PhpUnitXmlParser.php new file mode 100644 index 00000000..2b103b7c --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Parser/PhpUnitXmlParser.php @@ -0,0 +1,124 @@ + + */ +class PhpUnitXmlParser extends XMLParser implements IParser +{ + + protected $dirOfFileXmls; + /** + * Extracts basic information about coverage report + * from the root xml file (index.xml). + * For line coverage information about the files it has + * to parse each individual file. This is handled by + * _getLineCoverage() private method. + * @return CoverageReport $report The CoverageReport object + */ + + /** + * @param $dir string The path to where the single file xmls reside + */ + public function setDirOfFileXmls($dir) + { + $this->dirOfFileXmls = $dir; + } + + /** + * @return string The path to where the single file xmls reside + */ + public function getDirOfFileXmls() + { + return $this->dirOfFileXmls; + } + + public function makeReport() + { + //we can get the report total from the first directory summary. + $reportTotal = $this->getTotalFromPercent($this->element->project->directory->totals->lines["percent"]); + + $fileReports = array(); + foreach ($this->element->project->directory->file as $file) { + $fileName = $this->getRelativePath($file["href"]); + $fileTotal = $this->getTotalFromPercent($file->totals->lines["percent"]); + + $xmlFileHref = (string)$file["href"]; + $base = $this->getDirOfFileXmls(); + // get the corresponding xml file to get lineCoverage information. + if (file_exists($base . DIRECTORY_SEPARATOR . $xmlFileHref)) { + $fileXml = simplexml_load_file($base . DIRECTORY_SEPARATOR . $xmlFileHref); + } else { + throw new \InvalidArgumentException( + "Error: Cannot read XML file. Using: " . $base . DIRECTORY_SEPARATOR . $xmlFileHref . "\n\r" + ); + } + + $lineCoverage = $this->getLineCoverage($fileXml); + $fileReport = new FileReport($fileTotal, $fileName, $lineCoverage); + array_push($fileReports, $fileReport); + } + $report = new CoverageReport($reportTotal, $fileReports); + return $report; + } + + /** + * Iterates all nodes and produces an array holding line coverage information. + * @param \SimpleXMLElement $node The XML node holding the nodes + * @return array: (lineNumber -> hits) + */ + private function getLineCoverage(\SimpleXMLElement $node) + { + $lineCoverage = (object)array(); + if ($node->file->coverage) { + foreach ($node->file->coverage->line as $line) { + $count = $line->covered->count(); + if ($count > 0) { + $nr = (string)$line["nr"]; + $lineCoverage->$nr = $count; + } + } + } + // else there is no line coverage, return empty array then. + return $lineCoverage; + } + + /** + * Gets Integer from percent. Example: 95.00% -> 95 + * @param \SimpleXMLElement $percent The percent attribute of the node + * @return integer The according integer value + */ + private function getTotalFromPercent(\SimpleXMLElement $percent) + { + $percent = (string)$percent; + $percent = substr($percent, 0, -1); + return round($percent); + } + + /** + * The PhpUnit XML Coverage format does not save the full path of the filename + * We can get the filename by combining the path of the first directory with + * the href attribute of each file. + * @param \SimpleXMLElement $fileName The href attribute of the node. + * @return string The relative path of the file, that is, relative to project root. + */ + private function getRelativePath(\SimpleXMLElement $fileName) + { + $dirOfSrcFiles = $this->element->project->directory["name"]; + $projectRoot = $this->rootDir; + // Need to cut off everything lower than projectRoot + $dirFromProjectRoot = substr($dirOfSrcFiles, strlen($projectRoot) + 1); + // remove .xml and convert to string + $relativeFilePath = substr((string)$fileName, 0, -4); + return join(DIRECTORY_SEPARATOR, array($dirFromProjectRoot, $relativeFilePath)); + } +} diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Report/CoverageReport.php b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Report/CoverageReport.php new file mode 100644 index 00000000..d0c0f12d --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Report/CoverageReport.php @@ -0,0 +1,48 @@ + + */ +class CoverageReport +{ + /** + * @var integer + */ + private $_total; + + /** + * @var array (of type FileReport) + */ + private $_fileReports; + + /** + * @param $total string + * @param $fileReports array (of type FileReport) + */ + public function __construct($total, $fileReports) + { + $this->_total = $total; + $this->_fileReports = $fileReports; + } + + /** + * @return integer + */ + public function getTotal() + { + return $this->_total; + } + + /** + * @return array (of type FileReport) + */ + public function getFileReports() + { + return $this->_fileReports; + } +} \ No newline at end of file diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Report/FileReport.php b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Report/FileReport.php new file mode 100644 index 00000000..e927ac07 --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Report/FileReport.php @@ -0,0 +1,63 @@ + hits] + * @author Jakob Pupke + */ +class FileReport +{ + /** + * @var integer + */ + private $_total; + + /** + * @var string + */ + private $_fileName; + + /** + * @var array (line -> hits) of type [string -> int] + */ + private $_lineCoverage; + + /** + * @param $total string + * @param $fileName string + * @param $lineCoverage array + */ + public function __construct($total, $fileName, $lineCoverage) + { + $this->_total = $total; + $this->_fileName = $fileName; + $this->_lineCoverage = $lineCoverage; + } + + /** + * @return integer + */ + public function getTotal() + { + return $this->_total; + } + + /** + * @return string + */ + public function getFileName() + { + return $this->_fileName; + } + + /** + * @return array + */ + public function getLineCoverage() + { + return $this->_lineCoverage; + } +} \ No newline at end of file diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Util/CodacyApiClient.php b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Util/CodacyApiClient.php new file mode 100644 index 00000000..58112429 --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Util/CodacyApiClient.php @@ -0,0 +1,65 @@ + + */ +class CodacyApiClient +{ + + function __construct($baseUrl, $projectToken) + { + $this->baseUrl = $baseUrl; + $this->projectToken = $projectToken; + } + + /** + * @param string $commit commit uuid + * @param string $data the JSON data + * + * @return string success message + * + * @throws \Exception when remote server response + */ + public function sendCoverage($commit, $data) + { + $url = $this->baseUrl . "/2.0/coverage/" . $commit . "/php"; + + $curl = curl_init($url); + curl_setopt($curl, CURLOPT_HEADER, false); + curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); + curl_setopt( + $curl, CURLOPT_HTTPHEADER, + array( + "Content-type: application/json", + "project_token: " . $this->projectToken + ) + ); + curl_setopt($curl, CURLOPT_POST, true); + curl_setopt($curl, CURLOPT_POSTFIELDS, $data); + + $json_response = curl_exec($curl); + + $status = curl_getinfo($curl, CURLINFO_HTTP_CODE); + + if ($status < 200 || $status > 201) { + throw new \Exception( + sprintf("Error: call to URL %s failed with status %s, response %s, curl_error %u", + $url, $status, $json_response, curl_error($curl), curl_errno($curl) + ) + ); + } + + curl_close($curl); + + $json = json_decode($json_response, true); + + if (isset($json['success']) || array_key_exists('success', $json)) { + return $json['success']; + } else { + return $json['error']; + } + } +} diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Util/GitClient.php b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Util/GitClient.php new file mode 100644 index 00000000..21f3a9ff --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Util/GitClient.php @@ -0,0 +1,45 @@ + + */ +class GitClient +{ + /** + * @var Repository + */ + private $_repository; + + /** + * Instantiates a GitClient object. Reads conf.ini to get the path to the repository. + * Throws InvalidArgumentException is projectRoot is not properly set in ini file. + */ + public function __construct($path) + { + if (is_dir(getcwd())) { + $this->_repository = new Repository($path); + } else { + throw new \InvalidArgumentException( + "Could not instantiate GitClient. Using: " + . getcwd() + ); + } + + } + + /** + * @return string The Hash of the latest Commit. + */ + public function getHashOfLatestCommit() + { + $head = $this->_repository->getHeadCommit(); + return $head->getHash(); + } +} + diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Util/JsonProducer.php b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Util/JsonProducer.php new file mode 100644 index 00000000..5c3b349c --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/src/Codacy/Coverage/Util/JsonProducer.php @@ -0,0 +1,87 @@ + + */ +class JsonProducer +{ + /** + * @var Parser that implements IParser interface + */ + private $_parser; + + /** + * Sets the JsonParser's member field + * @param $parser IParser Any parser class that implements the IParser interface + */ + public function setParser(IParser $parser) + { + $this->_parser = $parser; + } + + /** + * Delegates the job to the parser's makeReport() method + * @return CoverageReport The CoverageReport object + */ + public function makeReport() + { + return $this->_parser->makeReport(); + } + + /** + * Takes a CoverageReport object, the result of makeReport(), and outputs JSON. + * Example JSON format: + * { + * "total": 67, + * "fileReports": [ + * { + * "filename": "src/Codacy/Coverage/Api/Api.php", + * "total": 3, + * "coverage": { + * "12": 3, + * "13": 5, + * ......... + * ......... + * } + * }, + * ......... + * ....... + * ] + * } + * + * @return string the JSON string + */ + public function makeJson() + { + $report = $this->makeReport(); + $array = array(); + $array['total'] = $report->getTotal(); + + $fileReportsArray = array(); + $fileReports = $report->getFileReports(); + + foreach ($fileReports as $fr) { + $fileArray = array(); + $fileArray['filename'] = $fr->getFileName(); + $fileArray['total'] = $fr->getTotal(); + $fileArray['coverage'] = $fr->getLineCoverage(); + + array_push($fileReportsArray, $fileArray); + } + + $array['fileReports'] = $fileReportsArray; + + if (version_compare(PHP_VERSION, '5.4.0', '>=')) { + return json_encode($array, JSON_UNESCAPED_SLASHES); + } else { + return str_replace('\/', '/', json_encode($array)); + } + + } +} diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/Codacy/Coverage/Parser/CloverParserTest.php b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/Codacy/Coverage/Parser/CloverParserTest.php new file mode 100644 index 00000000..f3bb2a8f --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/Codacy/Coverage/Parser/CloverParserTest.php @@ -0,0 +1,61 @@ +setExpectedException('InvalidArgumentException'); + new CloverParser("/home/foo/bar/baz/m.xml"); + } + + /** + * Testing against the clover coverage report 'tests/res/clover/clover.xml' + */ + public function testCanParseCloverXmlWithoutProject() + { + $this->_canParseClover('tests/res/clover/clover.xml', "/home/jacke/Desktop/codacy-php"); + } + + /** + * Testing against the clover coverage report 'tests/res/clover/clover.xml' + * The test had been made in /home/jacke/Desktop/codacy-php so we need to pass this + * as 2nd (optional) parameter. Otherwise the filename will not be correct and test + * would fail on other machines or in other directories. + */ + public function testCanParseCloverXmlWithProject() + { + $this->_canParseClover('tests/res/clover/clover_without_packages.xml', "/home/jacke/Desktop/codacy-php"); + } + + private function _canParseClover($path, $rootDir) + { + $parser = new CloverParser($path, $rootDir); + $report = $parser->makeReport(); + $this->assertEquals(38, $report->getTotal()); + $this->assertEquals(5, sizeof($report->getFileReports())); + + $parserFileReports = $report->getFileReports(); + + $parserFileReport = $parserFileReports[0]; + $coverageReportFileReport = $parserFileReports[1]; + + $this->assertEquals(33, $parserFileReport->getTotal()); + $this->assertEquals(33, $coverageReportFileReport->getTotal()); + + $parserFileName = $parserFileReport->getFileName(); + + $reportFileName = $coverageReportFileReport->getFileName(); + + $fileReports = $report->getFileReports(); + $fileReport = $fileReports[1]; + + $expLineCoverage = (object)array(11 => 1, 12 => 1, 13 => 1, 16 => 1); + $this->assertEquals($fileReport->getLineCoverage(), $expLineCoverage); + + $this->assertEquals("src/Codacy/Coverage/Parser/Parser.php", $parserFileName); + $this->assertEquals("src/Codacy/Coverage/Report/CoverageReport.php", $reportFileName); + } +} diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/Codacy/Coverage/Parser/ParserTest.php b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/Codacy/Coverage/Parser/ParserTest.php new file mode 100644 index 00000000..b812ed4f --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/Codacy/Coverage/Parser/ParserTest.php @@ -0,0 +1,34 @@ +setDirOfFileXmls('tests/res/phpunit-clover'); + $expectedJson = file_get_contents('tests/res/expected.json', true); + + $jsonProducer = new JsonProducer(); + + $jsonProducer->setParser($cloverParser); + + $cloverJson = $jsonProducer->makeJson(); + + $jsonProducer->setParser($xunitParser); + + $xunitJson = $jsonProducer->makeJson(); + + $this->assertJsonStringEqualsJsonString($expectedJson, $cloverJson); + + $this->assertJsonStringEqualsJsonString($expectedJson, $xunitJson); + } +} diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/Codacy/Coverage/Parser/PhpUnitXmlParserTest.php b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/Codacy/Coverage/Parser/PhpUnitXmlParserTest.php new file mode 100644 index 00000000..32267154 --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/Codacy/Coverage/Parser/PhpUnitXmlParserTest.php @@ -0,0 +1,51 @@ +setExpectedException('InvalidArgumentException'); + new PhpUnitXmlParser("/home/foo/bar/baz/fake.xml"); + } + + /** + * Testing against the clover coverage report 'tests/res/clover/clover.xml' + * The test had been made in /home/jacke/Desktop/codacy-php so we need to pass this + * as 2nd (optional) parameter. Otherwise the filename will not be correct and test + * would fail on other machines or in other directories. + */ + public function testCanParsePhpUnitXmlReport() + { + + $parser = new PhpUnitXmlParser('tests/res/phpunitxml/index.xml', '/home/jacke/Desktop/codacy-php'); + $parser->setDirOfFileXmls("tests/res/phpunitxml"); + $report = $parser->makeReport(); + + $this->assertEquals(69, $report->getTotal()); + $this->assertEquals(10, sizeof($report->getFileReports())); + + $fileReports = $report->getFileReports(); + + $configFileReport = $fileReports[2]; + $cloverParserFileReport = $fileReports[4]; + + $this->assertEquals(86, $configFileReport->getTotal()); + $this->assertEquals(95, $cloverParserFileReport->getTotal()); + + $lineCoverage = $configFileReport->getLineCoverage(); + $expLineCoverage = (object)array(24 => 4, 25 => 4, 26 => 4, 27 => 4, 28 => 4, 29 => 4); + $this->assertEquals($lineCoverage, $expLineCoverage); + + $configFileName = $configFileReport->getFileName(); + + $cloverParserFileName = $cloverParserFileReport->getFileName(); + + $this->assertEquals("src/Codacy/Coverage/Config.php", $configFileName); + $this->assertEquals("src/Codacy/Coverage/Parser/CloverParser.php", $cloverParserFileName); + } + +} \ No newline at end of file diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/Codacy/Coverage/Util/GitClientTest.php b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/Codacy/Coverage/Util/GitClientTest.php new file mode 100644 index 00000000..b037b9e8 --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/Codacy/Coverage/Util/GitClientTest.php @@ -0,0 +1,13 @@ +getHashOfLatestCommit(); + $this->assertEquals(40, strlen($hash)); + } +} \ No newline at end of file diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/clover/clover.xml b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/clover/clover.xml new file mode 100644 index 00000000..dd00611d --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/clover/clover.xml @@ -0,0 +1,365 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/clover/clover_without_packages.xml b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/clover/clover_without_packages.xml new file mode 100644 index 00000000..79be5ef6 --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/clover/clover_without_packages.xml @@ -0,0 +1,359 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/expected.json b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/expected.json new file mode 100644 index 00000000..d448e740 --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/expected.json @@ -0,0 +1,179 @@ +{ + "total": 94, + "fileReports": [ + { + "filename": "src/Codacy/Coverage/Parser/CloverParser.php", + "total": 96, + "coverage": { + "24": 3, + "25": 3, + "26": 3, + "27": 3, + "28": 3, + "29": 3, + "30": 3, + "31": 3, + "43": 3, + "49": 3, + "51": 1, + "52": 1, + "53": 3, + "54": 2, + "55": 2, + "56": 3, + "67": 3, + "69": 3, + "70": 3, + "71": 3, + "74": 3, + "76": 3, + "77": 3, + "78": 3, + "79": 3, + "80": 3, + "81": 3, + "93": 2, + "94": 2, + "95": 2, + "96": 2, + "107": 3, + "108": 3, + "109": 3, + "111": 3, + "112": 3, + "113": 3, + "114": 3, + "115": 3, + "116": 3, + "117": 3, + "129": 3, + "130": 3 + } + }, + { + "filename": "src/Codacy/Coverage/Parser/Parser.php", + "total": 100, + "coverage": { + "42": 6, + "43": 4, + "44": 1, + "45": 1, + "46": 3, + "48": 4, + "49": 4, + "50": 2, + "52": 2, + "53": 2, + "55": 4 + } + }, + { + "filename": "src/Codacy/Coverage/Parser/PhpUnitXmlParser.php", + "total": 93, + "coverage": { + "33": 2, + "34": 2, + "40": 2, + "46": 2, + "48": 2, + "49": 2, + "50": 2, + "51": 2, + "53": 2, + "54": 2, + "56": 2, + "57": 2, + "58": 2, + "64": 2, + "65": 2, + "66": 2, + "67": 2, + "68": 2, + "69": 2, + "79": 2, + "80": 2, + "81": 2, + "82": 2, + "83": 2, + "84": 2, + "85": 2, + "86": 2, + "87": 2, + "88": 2, + "90": 2, + "100": 2, + "101": 2, + "102": 2, + "115": 2, + "116": 2, + "118": 2, + "120": 2, + "121": 2 + } + }, + { + "filename": "src/Codacy/Coverage/Report/CoverageReport.php", + "total": 100, + "coverage": { + "29": 4, + "30": 4, + "31": 4, + "38": 4, + "46": 4 + } + }, + { + "filename": "src/Codacy/Coverage/Report/FileReport.php", + "total": 100, + "coverage": { + "35": 4, + "36": 4, + "37": 4, + "38": 4, + "45": 4, + "53": 4, + "61": 4 + } + }, + { + "filename": "src/Codacy/Coverage/Util/GitClient.php", + "total": 67, + "coverage": { + "25": 1, + "26": 1, + "27": 1, + "34": 1, + "41": 1, + "42": 1 + } + }, + { + "filename": "src/Codacy/Coverage/Util/JsonProducer.php", + "total": 100, + "coverage": { + "25": 1, + "26": 1, + "34": 1, + "62": 1, + "63": 1, + "64": 1, + "66": 1, + "67": 1, + "69": 1, + "70": 1, + "71": 1, + "72": 1, + "73": 1, + "75": 1, + "76": 1, + "78": 1, + "81": 1 + } + }, + { + "filename": "src/Codacy/Coverage/Util/EmptyFile.php", + "total": 0, + "coverage": {} + } + ] +} \ No newline at end of file diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Parser/CloverParser.php.xml b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Parser/CloverParser.php.xml new file mode 100644 index 00000000..7f853a16 --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Parser/CloverParser.php.xml @@ -0,0 +1,229 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Parser/Parser.php.xml b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Parser/Parser.php.xml new file mode 100644 index 00000000..23ac3101 --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Parser/Parser.php.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Parser/PhpUnitXmlParser.php.xml b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Parser/PhpUnitXmlParser.php.xml new file mode 100644 index 00000000..6d3dd007 --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Parser/PhpUnitXmlParser.php.xml @@ -0,0 +1,176 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Report/CoverageReport.php.xml b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Report/CoverageReport.php.xml new file mode 100644 index 00000000..098e8e01 --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Report/CoverageReport.php.xml @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Report/FileReport.php.xml b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Report/FileReport.php.xml new file mode 100644 index 00000000..60f18ae2 --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Report/FileReport.php.xml @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Util/EmptyFile.php.xml b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Util/EmptyFile.php.xml new file mode 100644 index 00000000..7b90e6ba --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Util/EmptyFile.php.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Util/GitClient.php.xml b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Util/GitClient.php.xml new file mode 100644 index 00000000..eba67554 --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Util/GitClient.php.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Util/JsonProducer.php.xml b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Util/JsonProducer.php.xml new file mode 100644 index 00000000..414678c0 --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/Util/JsonProducer.php.xml @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/clover.xml b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/clover.xml new file mode 100644 index 00000000..92735d48 --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/clover.xml @@ -0,0 +1,244 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/index.xml b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/index.xml new file mode 100644 index 00000000..7318deea --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunit-clover/index.xml @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Api/Api.php.xml b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Api/Api.php.xml new file mode 100644 index 00000000..f11b7286 --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Api/Api.php.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/CodacyPhpCoverage.php.xml b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/CodacyPhpCoverage.php.xml new file mode 100644 index 00000000..c8c25af5 --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/CodacyPhpCoverage.php.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Config.php.xml b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Config.php.xml new file mode 100644 index 00000000..e70c6614 --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Config.php.xml @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Git/GitClient.php.xml b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Git/GitClient.php.xml new file mode 100644 index 00000000..d86a0051 --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Git/GitClient.php.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Parser/CloverParser.php.xml b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Parser/CloverParser.php.xml new file mode 100644 index 00000000..a8297e6b --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Parser/CloverParser.php.xml @@ -0,0 +1,224 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Parser/Parser.php.xml b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Parser/Parser.php.xml new file mode 100644 index 00000000..c61ffaed --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Parser/Parser.php.xml @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Parser/PhpUnitXmlParser.php.xml b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Parser/PhpUnitXmlParser.php.xml new file mode 100644 index 00000000..203c73d3 --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Parser/PhpUnitXmlParser.php.xml @@ -0,0 +1,118 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Report/CoverageReport.php.xml b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Report/CoverageReport.php.xml new file mode 100644 index 00000000..a510668f --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Report/CoverageReport.php.xml @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Report/FileReport.php.xml b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Report/FileReport.php.xml new file mode 100644 index 00000000..f18da1a7 --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Report/FileReport.php.xml @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Report/JsonProducer.php.xml b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Report/JsonProducer.php.xml new file mode 100644 index 00000000..161d25aa --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/Report/JsonProducer.php.xml @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/index.xml b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/index.xml new file mode 100644 index 00000000..590bb429 --- /dev/null +++ b/.devilbox/www/htdocs/vendor/phpmyadmin-4.7/vendor/codacy/coverage/tests/res/phpunitxml/index.xml @@ -0,0 +1,221 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/_config.yml b/_config.yml deleted file mode 100644 index c50ff38d..00000000 --- a/_config.yml +++ /dev/null @@ -1 +0,0 @@ -theme: jekyll-theme-merlot \ No newline at end of file