Skip to content

docs: phpunit deprecated the support for using comma-separated values with the --group CLI options #9619

Closed
@Franky5831

Description

@Franky5831

PHP Version

8.4

CodeIgniter4 Version

4.6.1

CodeIgniter4 Installation Method

Composer (using codeigniter4/appstarter)

Which operating systems have you tested for this bug?

macOS

Which server did you use?

apache

Database

No response

What happened?

I ran the phpunit tests as i red in the Codeigniter 4 documentation with the following command:
vendor/bin/phpunit --exclude-group DatabaseLive,CacheLive

and I got the following message:

There were 2 PHPUnit test runner warnings:
1) Using comma-separated values with --exclude-group is deprecated and will no longer work in PHPUnit 12. You can use --exclude-group multiple times instead.

As you can read here that has been deprecated.
The new syntax is supposed to be:
vendor/bin/phpunit --exclude-group DatabaseLive --exclude-group CacheLive

Steps to Reproduce

Run the following commands:

  1. vendor/bin/phpunit --exclude-group DatabaseLive,CacheLive
  2. vendor/bin/phpunit --exclude-group DatabaseLive --exclude-group CacheLive

Expected Output

  1. A warning
  2. Nothing

Anything else?

Should I just create a pull request next time or do you prefer a issue for this kind of reports?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions