kylekatarnls / multi-tester

Compare a3794ea ... +1 ... 852eab1

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 1 of 1 files from the diff.

@@ -76,12 +76,12 @@
Loading
76 76
    {
77 77
        $arguments = $this->filterArguments($arguments, '--add');
78 78
        $this->tester = $multiTester;
79 -
        $this->verbose = in_array('--verbose', $arguments) || in_array('-v', $arguments);
80 -
        $this->quiet = in_array('--quiet-install', $arguments) || in_array('-q', $arguments);
81 -
        $arguments = array_filter($arguments, function ($argument) {
82 -
            return $argument !== '--verbose' && $argument !== '-v';
83 -
        });
84 -
        $this->configFile = $arguments[1] ?? $multiTester->getMultiTesterFile();
79 +
        $this->verbose = in_array('--verbose', $arguments, true) || in_array('-v', $arguments, true);
80 +
        $this->quiet = in_array('--quiet-install', $arguments, true) || in_array('-q', $arguments, true);
81 +
        $arguments = array_slice(array_values(array_filter($arguments, function ($argument) {
82 +
            return !in_array($argument, ['--verbose', '-v', '--quiet-install', '-q'], true);
83 +
        })), 1);
84 +
        $this->configFile = $arguments[0] ?? $multiTester->getMultiTesterFile();
85 85
        $this->addProjects();
86 86
87 87
        if (!file_exists($this->configFile)) {

Learn more Showing 3 files with coverage changes found.

Changes in src/MultiTester/MultiTester.php
-1
Loading file...
Changes in src/MultiTester/GitHub.php
-1
Loading file...
Changes in src/MultiTester/Project.php
-10
Loading file...
Files Coverage
src/MultiTester 100.00%
Project Totals (13 files) 100.00%
Loading