Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coverage-php log type in phpunit.xml.dist triggers warning #3225

Closed
Wharenn opened this issue Jul 26, 2018 · 0 comments · Fixed by elecena/nano#2
Closed

coverage-php log type in phpunit.xml.dist triggers warning #3225

Wharenn opened this issue Jul 26, 2018 · 0 comments · Fixed by elecena/nano#2
Assignees
Labels
type/bug Something is broken

Comments

@Wharenn
Copy link

Wharenn commented Jul 26, 2018

Q A
PHPUnit version 7.2.7
PHP version 7.2.5
Installation Method Composer
aws/aws-sdk-php                          3.63.6             AWS SDK for PHP - Use Amazon Web Services in your PHP project
behat/behat                              v3.4.3             Scenario-oriented BDD framework for PHP 5.3
behat/common-contexts                    v1.2.0             Commonly used contexts for Behat
behat/gherkin                            v4.5.1             Gherkin DSL parser for PHP 5.3
behat/mink                               v1.7.1             Browser controller/emulator abstraction for PHP
behat/mink-browserkit-driver             1.3.3              Symfony2 BrowserKit driver for Mink framework
behat/mink-extension                     2.3.1              Mink extension for Behat
behat/mink-goutte-driver                 v1.2.1             Goutte driver for Mink framework
behat/symfony2-extension                 2.1.5              Symfony2 framework extension for Behat
behat/transliterator                     v1.2.0             String transliterator
cocur/slugify                            v3.1               Converts a string into a slug.
composer/ca-bundle                       1.1.1              Lets you find a path to the system CA bundle, and includes a fallback to the Mo...
composer/xdebug-handler                  1.1.0              Restarts a process without xdebug.
container-interop/container-interop      1.2.0              Promoting the interoperability of container objects (DIC, SL, etc.)
dmore/behat-chrome-extension             dev-master 163b023 Behat extension for controlling chrome without selenium
dmore/chrome-mink-driver                 2.6.3              Mink driver for controlling chrome without selenium
doctrine/annotations                     v1.6.0             Docblock Annotations Parser
doctrine/cache                           v1.7.1             Caching library offering an object-oriented API for many cache backends
doctrine/collections                     v1.5.0             Collections Abstraction library
doctrine/common                          v2.9.0             Common Library for Doctrine projects
doctrine/data-fixtures                   v1.3.1             Data Fixtures for all Doctrine Object Managers
doctrine/dbal                            v2.8.0             Database Abstraction Layer
doctrine/doctrine-bundle                 1.9.1              Symfony DoctrineBundle
doctrine/doctrine-cache-bundle           1.3.3              Symfony Bundle for Doctrine Cache
doctrine/doctrine-migrations-bundle      v1.3.1             Symfony DoctrineMigrationsBundle
doctrine/event-manager                   v1.0.0             Doctrine Event Manager component
doctrine/inflector                       v1.3.0             Common String Manipulations with regard to casing and singular/plural rules.
doctrine/instantiator                    1.1.0              A small, lightweight utility to instantiate objects in PHP without invoking the...
doctrine/lexer                           v1.0.1             Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.
doctrine/migrations                      v1.8.1             Database Schema migrations using Doctrine DBAL
doctrine/orm                             v2.6.2             Object-Relational-Mapper for PHP
doctrine/persistence                     v1.0.0             Doctrine Persistence abstractions.
doctrine/reflection                      v1.0.0             Doctrine Reflection component
egeloen/ckeditor-bundle                  6.0.1              Provides a CKEditor integration for your Symfony2 Project.
egeloen/json-builder                     3.0.0              JSON builder with escaping control for PHP 5.6+
escapestudios/symfony2-coding-standard   3.4.1              CodeSniffer ruleset for the Symfony 2+ coding standard
exsyst/swagger                           v0.4.0             A php library to manipulate Swagger specifications
fabpot/goutte                            v3.2.3             A simple PHP Web Scraper
fig/link-util                            1.0.0              Common utility implementations for HTTP links
friendsofsymfony/ckeditor-bundle         1.1.0              Provides a CKEditor integration for your Symfony project.
friendsofsymfony/elastica-bundle         v3.2.4             Elasticsearch PHP integration for your Symfony2 project using Elastica
friendsofsymfony/rest-bundle             2.3.1              This Bundle provides various tools to rapidly develop RESTful API's with Symfony
friendsofsymfony/user-bundle             v2.1.2             Symfony FOSUserBundle
fzaninotto/faker                         v1.8.0             Faker is a PHP library that generates fake data for you.
gedmo/doctrine-extensions                v2.4.35            Doctrine2 behavioral extensions
guzzlehttp/guzzle                        6.3.3              Guzzle is a PHP HTTP client library
guzzlehttp/promises                      v1.3.1             Guzzle promises library
guzzlehttp/psr7                          1.4.2              PSR-7 message implementation that also provides common utility methods
h4cc/wkhtmltopdf-amd64                   0.12.4             Convert html to pdf using webkit (qtwebkit). Static linked linux binary for amd...
hautelook/alice-bundle                   v1.4.1             Symfony2 Bundle to manage fixtures with Alice and Faker.
imagine/imagine                          v0.7.1             Image processing for PHP 5.3
jdorn/sql-formatter                      v1.2.17            a PHP SQL highlighting library
jean85/pretty-package-versions           1.2                A wrapper for ocramius/package-versions to get pretty versions strings
jms/aop-bundle                           1.3.0              Adds AOP capabilities to Symfony2
jms/cg                                   1.2.0              Toolset for generating PHP code
jms/di-extra-bundle                      1.9.2              Allows to configure dependency injection using annotations
jms/metadata                             1.6.0              Class/method/property metadata management in PHP
jms/parser-lib                           1.0.0              A library for easily creating recursive-descent parsers.
jms/serializer                           1.12.1             Library for (de-)serializing data of any complexity; supports XML, JSON, and YAML.
jms/serializer-bundle                    2.4.2              Allows you to easily serialize, and deserialize data of any complexity
knplabs/gaufrette                        v0.6.0             PHP library that provides a filesystem abstraction layer
knplabs/knp-markdown-bundle              1.7.0              Knplabs markdown bundle transforms markdown into html
knplabs/knp-menu                         2.3.0              An object oriented menu library
knplabs/knp-menu-bundle                  v2.2.1             This bundle provides an integration of the KnpMenu library
knplabs/knp-snappy                       v1.0.4             PHP5 library allowing thumbnail, snapshot or PDF generation from a url or a htm...
knplabs/knp-snappy-bundle                v1.5.2             Easily create PDF and images in Symfony2 by converting Twig/HTML templates.
kriswallsmith/buzz                       v0.16.1            Lightweight HTTP client
liip/monitor-bundle                      2.7.0              Liip Monitor Bundle
michelf/php-markdown                     1.8.0              PHP Markdown
monolog/monolog                          1.23.0             Sends your logs to files, sockets, inboxes, databases and various web services
mtdowling/jmespath.php                   2.4.0              Declaratively specify how to extract elements from a JSON document
myclabs/deep-copy                        1.8.1              Create deep copies (clones) of your objects
nelmio/alice                             v2.3.5             Expressive fixtures generator
nelmio/api-doc-bundle                    v3.2.1             Generates documentation for your REST API from annotations
nette/bootstrap                          v2.4.6             🅱 Nette Bootstrap: the simple way to configure and bootstrap your Nette appl...
nette/di                                 v2.4.13            💎 Nette Dependency Injection Container: Flexible, compiled and full-featured...
nette/finder                             v2.4.2             🔍 Nette Finder: find files and directories with an intuitive API.
nette/neon                               v2.4.3             🍸 Nette NEON: encodes and decodes NEON file format.
nette/php-generator                      v3.0.4             🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 7.2...
nette/robot-loader                       v3.0.4             🍀 Nette RobotLoader: high performance and comfortable autoloader that will s...
nette/utils                              v2.5.2             🛠 Nette Utils: lightweight utilities for string & array manipulation, image ...
nikic/php-parser                         v4.0.3             A PHP parser written in PHP
ocramius/package-versions                1.3.0              Composer plugin that provides efficient querying for installed package versions...
ocramius/proxy-manager                   2.2.0              A library providing utilities to generate, instantiate and generally operate wi...
pagerfanta/pagerfanta                    v1.0.5             Pagination for PHP 5.3
paragonie/random_compat                  v2.0.17            PHP 5.x polyfill for random_bytes() and random_int() from PHP 7
phar-io/manifest                         1.0.3              Component for reading phar.io manifest information from a PHP Archive (PHAR)
phar-io/version                          2.0.1              Library for handling version information and constraints
phpcollection/phpcollection              0.5.0              General-Purpose Collection Library for PHP
phpdocumentor/reflection-common          1.0.1              Common reflection classes used by phpdocumentor to reflect the code structure
phpdocumentor/reflection-docblock        4.3.0              With this component, a library can provide support for annotations via DocBlock...
phpdocumentor/type-resolver              0.4.0
phpoption/phpoption                      1.5.0              Option Type for PHP
phpspec/prophecy                         1.7.6              Highly opinionated mocking framework for PHP 5.3+
phpstan/phpdoc-parser                    0.3                PHPDoc parser with support for nullable, intersection and generic types
phpstan/phpstan                          0.10.2             PHPStan - PHP Static Analysis Tool
phpunit/php-code-coverage                6.0.7              Library that provides collection, processing, and rendering functionality for P...
phpunit/php-file-iterator                2.0.1              FilterIterator implementation that filters files based on a list of suffixes.
phpunit/php-text-template                1.2.1              Simple template engine.
phpunit/php-timer                        2.0.0              Utility class for timing
phpunit/php-token-stream                 3.0.0              Wrapper around PHP's tokenizer extension.
phpunit/phpcov                           5.0.0              CLI frontend for php-code-coverage
phpunit/phpunit                          7.2.7              The PHP Unit Testing framework.
predis/predis                            v1.1.1             Flexible and feature-complete Redis client for PHP and HHVM
psr/cache                                1.0.1              Common interface for caching libraries
psr/container                            1.0.0              Common Container Interface (PHP FIG PSR-11)
psr/http-message                         1.0.1              Common interface for HTTP messages
psr/link                                 1.0.0              Common interfaces for HTTP links
psr/log                                  1.0.2              Common interface for logging libraries
psr/simple-cache                         1.0.1              Common interfaces for simple caching
ruflin/elastica                          2.3.1              Elasticsearch Client
sebastian/code-unit-reverse-lookup       1.0.1              Looks up which function or method a line of code belongs to
sebastian/comparator                     3.0.2              Provides the functionality to compare PHP values for equality
sebastian/diff                           3.0.1              Diff implementation
sebastian/environment                    3.1.0              Provides functionality to handle HHVM/PHP environments
sebastian/exporter                       3.1.0              Provides the functionality to export PHP variables for visualization
sebastian/finder-facade                  1.2.2              FinderFacade is a convenience wrapper for Symfony's Finder component.
sebastian/global-state                   2.0.0              Snapshotting of global state
sebastian/object-enumerator              3.0.3              Traverses array structures and object graphs to enumerate all referenced objects
sebastian/object-reflector               1.1.1              Allows reflection of object attributes, including inherited and non-public ones
sebastian/recursion-context              3.0.0              Provides functionality to recursively process PHP variables
sebastian/resource-operations            1.0.0              Provides a list of PHP built-in functions that operate on resources
sebastian/version                        2.0.1              Library that helps with managing the version number of Git-hosted PHP projects
sensio/distribution-bundle               v5.0.22            Base bundle for Symfony Distributions
sensio/framework-extra-bundle            v3.0.29            This bundle provides a way to configure your controllers with annotations
sensio/generator-bundle                  v3.1.7             This bundle generates code for you
sensiolabs/security-checker              v4.1.8             A security checker for your composer.lock
simplethings/entity-audit-bundle         v0.9.2             Audit for Doctrine Entities
snc/redis-bundle                         2.1.5              A Redis bundle for Symfony
sonata-project/admin-bundle              3.36.0             The missing Symfony Admin Generator
sonata-project/article-bundle            dev-master b1df22b Advanced article management
sonata-project/block-bundle              3.12.1             Symfony SonataBlockBundle
sonata-project/cache                     1.1.1              Cache library
sonata-project/cache-bundle              2.4.2              This bundle provides caching services
sonata-project/classification-bundle     3.7.1              Symfony SonataClassificationBundle
sonata-project/core-bundle               3.11.2             Symfony SonataCoreBundle
sonata-project/dashboard-bundle          0.3.0              Provides a Dashboard management through container and block services
sonata-project/datagrid-bundle           2.3.1              Symfony SonataDatagridBundle
sonata-project/doctrine-extensions       1.0.2              Doctrine2 behavioral extensions
sonata-project/doctrine-orm-admin-bundle 3.6.1              Symfony Sonata / Integrate Doctrine ORM into the SonataAdminBundle
sonata-project/easy-extends-bundle       2.5.0              Symfony SonataEasyExtendsBundle
sonata-project/exporter                  1.9.1              Lightweight Exporter library
sonata-project/formatter-bundle          3.5.0              Symfony SonataFormatterBundle
sonata-project/intl-bundle               2.5.0              Symfony SonataIntlBundle
sonata-project/media-bundle              3.x-dev 337cc6a    Symfony SonataMediaBundle
sonata-project/notification-bundle       3.5.1              Symfony SonataNotificationBundle
sonata-project/page-bundle               3.9.0              This bundle provides a Site and Page management through container and block ser...
sonata-project/seo-bundle                2.5.1              Symfony SonataSeoBundle
sonata-project/user-bundle               4.2.3              Symfony SonataUserBundle
squizlabs/php_codesniffer                3.3.0              PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations ...
stof/doctrine-extensions-bundle          v1.3.0             Integration of the gedmo/doctrine-extensions with Symfony2
swiftmailer/swiftmailer                  v5.4.9             Swiftmailer, free feature-rich PHP mailer
symfony-cmf/routing                      2.1.0              Extends the Symfony routing component for dynamic routes and chaining several r...
symfony-cmf/routing-bundle               2.1.0              Symfony RoutingBundle
symfony/monolog-bundle                   v3.3.0             Symfony MonologBundle
symfony/phpunit-bridge                   v4.1.2             Symfony PHPUnit Bridge
symfony/polyfill-apcu                    v1.8.0             Symfony polyfill backporting apcu_* functions to lower PHP versions
symfony/polyfill-ctype                   v1.8.0             Symfony polyfill for ctype functions
symfony/polyfill-intl-icu                v1.8.0             Symfony polyfill for intl's ICU-related data and classes
symfony/polyfill-mbstring                v1.8.0             Symfony polyfill for the Mbstring extension
symfony/polyfill-php56                   v1.8.0             Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions
symfony/polyfill-php70                   v1.8.0             Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions
symfony/polyfill-util                    v1.8.0             Symfony utilities for portability of PHP codes
symfony/security-acl                     v3.0.1             Symfony Security Component - ACL (Access Control List)
symfony/swiftmailer-bundle               v2.6.7             Symfony SwiftmailerBundle
symfony/symfony                          v3.4.12            The Symfony PHP framework
textalk/websocket                        1.2.0              WebSocket client and server
theseer/fdomdocument                     1.6.6              The classes contained within this repository extend the standard DOM to use exc...
theseer/tokenizer                        1.1.0              A small library for converting tokenized PHP source code into XML and potential...
twig/extensions                          v1.5.1             Common additional features for Twig that do not directly belong in core
twig/twig                                v2.5.0             Twig, the flexible, fast, and secure template language for PHP
webmozart/assert                         1.3.0              Assertions to validate method input/output with nice error messages.
willdurand/faker-bundle                  1.4.1              Put the awesome Faker lib into the DIC and populate your database with fake data.
willdurand/hateoas                       2.12.0             A PHP library to support implementing representations for HATEOAS REST web serv...
willdurand/hateoas-bundle                1.4.0              Integration of Hateoas into Symfony2.
willdurand/jsonp-callback-validator      v1.1.0             JSONP callback validator.
willdurand/negotiation                   v2.3.1             Content Negotiation tools for PHP provided as a standalone library.
zendframework/zend-code                  3.3.0              provides facilities to generate arbitrary code using an object oriented interface
zendframework/zend-eventmanager          3.2.1              Trigger and listen to events within a PHP application
zendframework/zenddiagnostics            v1.2.0             A set of components for performing diagnostic tests in PHP applications
zircote/swagger-php                      2.0.13             Swagger-PHP - Generate interactive documentation for your RESTful API using php...

I have recently updated from PHPUnit 6 to 7 and running test suites now triggers the following warning:

PHPUnit 7.2.7 by Sebastian Bergmann and contributors.

  Warning - The configuration file did not pass validation!
  The following problems have been detected:

  Line 36:
  - Element 'log', attribute 'type': [facet 'enumeration'] The value 'coverage-php' is not an element of the set {'coverage-html', 'coverage-text', 'coverage-clover', 'coverage-crap4j', 'coverage-xml', 'json', 'plain', 'tap', 'teamcity', 'junit', 'testdox-html', 'testdox-text', 'testdox-xml'}.
  - Element 'log', attribute 'type': 'coverage-php' is not a valid value of the local atomic type.

  Test results may not be as expected.


...............................................................  63 / 552 ( 11%)
............................................................... 126 / 552 ( 22%)
............................................................... 189 / 552 ( 34%)
............................................................... 252 / 552 ( 45%)
............................................................... 315 / 552 ( 57%)
............................................................... 378 / 552 ( 68%)
............................................................... 441 / 552 ( 79%)
............................................................... 504 / 552 ( 91%)
................................................                552 / 552 (100%)

Time: 2.51 minutes, Memory: 100.00MB

OK (552 tests, 1713 assertions)

Generating code coverage report in HTML format ... done

Generating code coverage report in PHP format ... done

Remaining deprecation notices (4)

Here is the relevant part of the phpunit.xml.dist:

    <logging>
        <log type="coverage-html" target="build/html-coverage-unit" lowUpperBound="35" highLowerBound="70" />
        <log type="coverage-php" target="build/clover-unit.cov"/>
        <log type="junit" target="build/junit.xml"/>
    </logging>

It seems the coverage-php is no more allowed by the xml schema. Is there any thing I missed when migrating? I searched but so far found no information about changes in this feature. However, despite the warning, the coverage is still generated without problem.

(I'm not sure about the location of this issue, maybe I need to open it on php-code-coverage? It seemed to me it was related to the general phpunit config file)

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something is broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants