kylekatarnls / multi-tester

@@ -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
     */
Files Complexity Coverage
src/MultiTester 193 99.30%
Project Totals (12 files) 193 99.30%
95.5
TRAVIS_PHP_VERSION=7.1
TRAVIS_OS_NAME=linux
95.3
TRAVIS_PHP_VERSION=5.6
TRAVIS_OS_NAME=linux
95.1
TRAVIS_PHP_VERSION=5.4
TRAVIS_OS_NAME=linux
95.4
TRAVIS_PHP_VERSION=7.0
TRAVIS_OS_NAME=linux
95.2
TRAVIS_PHP_VERSION=5.5
TRAVIS_OS_NAME=linux
95.6
TRAVIS_PHP_VERSION=7.2
TRAVIS_OS_NAME=linux

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading