kylekatarnls / multi-tester

Compare 05fe0a1 ... +0 ... f9efe67

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.


@@ -73,12 +73,26 @@
Loading
73 73
     */
74 74
    public function test()
75 75
    {
76 +
        $this->removeReplacedPackages();
76 77
        $this->download();
77 78
        $this->install();
78 79
79 80
        return $this->exec();
80 81
    }
81 82
83 +
    public function removeReplacedPackages()
84 +
    {
85 +
        if (!isset($this->config->data['replace'])) {
86 +
            return;
87 +
        }
88 +
89 +
        $replace = (array) $this->config->data['replace'];
90 +
91 +
        foreach ($replace as $package => $version) {
92 +
            (new Directory('vendor/' . $package))->remove();
93 +
        }
94 +
    }
95 +
82 96
    protected function getScript($script)
83 97
    {
84 98
        $script = is_array($script) ? $script : [$script];

@@ -108,6 +108,8 @@
Loading
108 108
     * @param array $arguments
109 109
     *
110 110
     * @throws MultiTesterException
111 +
     *
112 +
     * @return bool
111 113
     */
112 114
    public function run(array $arguments)
113 115
    {
@@ -153,6 +155,8 @@
Loading
153 155
     */
154 156
    protected function getConfig(array $arguments)
155 157
    {
158 +
        $config = null;
159 +
156 160
        try {
157 161
            $config = new Config($this, $arguments);
158 162
        } catch (MultiTesterException $exception) {
@@ -163,7 +167,7 @@
Loading
163 167
    }
164 168
165 169
    /**
166 -
     * @param array|null $directory
170 +
     * @param array|null $directories
167 171
     *
168 172
     * @throws MultiTesterException
169 173
     */

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Complexity Coverage
src/MultiTester ø -0.70% 99.30%
Project Totals (12 files) 193 99.30%
Loading